From 5eefdf96612b65b59a39982a54b075933e71c1c0 Mon Sep 17 00:00:00 2001 From: Patrick Huang Date: Fri, 17 Jun 2016 09:55:59 +1000 Subject: [PATCH] fix error message on missing sys property --- .../main/java/org/zanata/file/FileSystemPersistService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zanata-war/src/main/java/org/zanata/file/FileSystemPersistService.java b/zanata-war/src/main/java/org/zanata/file/FileSystemPersistService.java index bf36aef0c1..a1f9118376 100644 --- a/zanata-war/src/main/java/org/zanata/file/FileSystemPersistService.java +++ b/zanata-war/src/main/java/org/zanata/file/FileSystemPersistService.java @@ -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; @@ -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);