From 16a24ecd79d6ae27df52c3ce129d4a635ceb071f Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sat, 22 Jan 2022 06:58:47 +0000 Subject: [PATCH] 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 --- poi/src/main/java/org/apache/poi/hpsf/PropertySetFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.5