From 743f1e8fd3dc021610bb3bd84f1829f36db3489e Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Thu, 16 Jun 2016 13:15:18 +0200
Subject: [PATCH] - improved error message

---
 PLUGIN-INF/metadata_SLUBStoragepPlugin.xml             |  2 +-
 .../plugin/storage/nfs/SLUBStoragePlugin.java          | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/PLUGIN-INF/metadata_SLUBStoragepPlugin.xml b/PLUGIN-INF/metadata_SLUBStoragepPlugin.xml
index 693ed7a..9a11524 100644
--- a/PLUGIN-INF/metadata_SLUBStoragepPlugin.xml
+++ b/PLUGIN-INF/metadata_SLUBStoragepPlugin.xml
@@ -70,7 +70,7 @@
 		</fr:x_form>
 	</pl:initParameters>
 	<pl:description>SLUB Storage Plugin</pl:description>
-	<pl:version>2.806</pl:version>
+	<pl:version>2.807</pl:version>
 	<pl:materialType>DIGITAL</pl:materialType>
 	<pl:module>Repository</pl:module>
 	<pl:generalType>TASK</pl:generalType>
diff --git a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java
index dfe81fb..174ed85 100644
--- a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java
+++ b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java
@@ -1,6 +1,6 @@
 /*
 
-2014 by Andreas Romeyke (SLUB Dresden)
+2014-2016 by Andreas Romeyke (SLUB Dresden)
 
 The code contributed by SLUB is licensed under apache 2.0 and based partially
 on NFS Storage Plugin, 
@@ -436,8 +436,8 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
         DnxDocument iedoc = storedEntityMetaData.getIeDnx();
         log.debug("SLUBStoragePlugin.getStreamRelativePath() getIeDnx fine");
         if (null == iedoc) {
-            log.error ("SLUBStoragePlugin.getStreamRelativePath no iedoc found, do you use plugin for others than permanent data? You should not!");
-            throw new Exception("error, no iedoc found, do you use plugin for others than permanent data? You should not!");
+            log.error ("SLUBStoragePlugin.getStreamRelativePath no iedoc found, do you use plugin for others than permanent data (IE and filestream)? You should not! Also do not use it for SIPstoragePermanentGroup!");
+            throw new Exception("error, no iedoc found, do you use plugin for others than permanent data (IE and filestream)? You should not! Also do not use it for SIPstoragePermanentGroup!");
         }
         StoredEntityMetaData.EntityType entityType = storedEntityMetaData.getEntityType();
         log.debug("SLUBStoragePlugin.getStreamRelativePath() getEntityType fine");
@@ -445,8 +445,8 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
         log.debug("entitytype='" + entitytype + "'");
         DnxSection iesec = iedoc.getSectionById("internalIdentifier");
         if (null == iesec) {
-            log.error ("SLUBStoragePlugin.getStreamRelativePath no section in entity of type "+entitytype +" with 'internalIdentfier' in associated iedoc found, do you use plugin for others than permanent data? You should not!");
-            throw new Exception("error, no section in entity of type "+entitytype +" with 'internalIdentfier' in associated iedoc found, do you use plugin for others than permanent data? You should not!");
+            log.error ("SLUBStoragePlugin.getStreamRelativePath no section in entity of type "+entitytype +" with 'internalIdentfier' in associated iedoc found, do you use plugin for others than permanent data (IE and filestream)? You should not! Also do not use it for SIPstoragePermanentGroup!");
+            throw new Exception("error, no section in entity of type "+entitytype +" with 'internalIdentfier' in associated iedoc found, do you use plugin for others than permanent data (IE and filestream)? You should not! Also do not use it for SIPstoragePermanentGroup!");
         }
         String iepid = null;
         log.debug("SLUBStoragePlugin.getStreamRelativePath iesec=" + iesec.toString());
-- 
GitLab