From: Dominik Stadler Date: Sat, 22 Jan 2022 06:58:47 +0000 (+0000) Subject: Improve error-message, include some details why processing the file fails X-Git-Tag: REL_5_2_1~177 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=16a24ecd79d6ae27df52c3ce129d4a635ceb071f;p=poi.git Improve error-message, include some details why processing the file fails git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897320 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi/src/main/java/org/apache/poi/hpsf/PropertySetFactory.java b/poi/src/main/java/org/apache/poi/hpsf/PropertySetFactory.java index 350e3e605b..b08b68dfe1 100644 --- a/poi/src/main/java/org/apache/poi/hpsf/PropertySetFactory.java +++ b/poi/src/main/java/org/apache/poi/hpsf/PropertySetFactory.java @@ -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) {