]> source.dussan.org Git - poi.git/commitdiff
Improve error-message, include some details why processing the file fails
authorDominik Stadler <centic@apache.org>
Sat, 22 Jan 2022 06:58:47 +0000 (06:58 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 22 Jan 2022 06:58:47 +0000 (06:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897320 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/hpsf/PropertySetFactory.java

index 350e3e605be08f47c6a096404acb93b97cbc4835..b08b68dfe18121c7fc6b3dea1c7c8da68cdee127 100644 (file)
@@ -87,7 +87,9 @@ public class PropertySetFactory {
         if (byteOrder != PropertySet.BYTE_ORDER_ASSERTION ||
             format != PropertySet.FORMAT_ASSERTION ||
             sectionCount < 0) {
-            throw new NoPropertySetStreamException();
+            throw new NoPropertySetStreamException("ByteOrder: " + byteOrder +
+                    ", format: " + format +
+                    ", sectionCount: " + sectionCount);
         }
 
         if (sectionCount > 0) {