Skip to content

Commit

Permalink
fix error message on missing sys property
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Jun 16, 2016
1 parent c418b92 commit 5eefdf9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import javax.inject.Inject;
import javax.inject.Named;
import org.zanata.ApplicationConfiguration;
import org.zanata.config.SystemPropertyConfigStore;
import org.zanata.dao.DocumentDAO;
import org.zanata.model.HDocument;
import org.zanata.model.HProject;
Expand Down Expand Up @@ -97,7 +98,8 @@ private File ensureDocsDirectory() {
appConfig.getDocumentFileStorageLocation();
if (basePathStringOrNull == null) {
throw new RuntimeException(
"Document storage location is not configured in JNDI.");
"Document storage location is not configured as system property:" +
SystemPropertyConfigStore.KEY_DOCUMENT_FILE_STORE);
}
File docsDirectory =
new File(basePathStringOrNull, RAW_DOCUMENTS_SUBDIRECTORY);
Expand Down

0 comments on commit 5eefdf9

Please sign in to comment.