From: Dominik Stadler Date: Fri, 25 Nov 2016 22:07:45 +0000 (+0000) Subject: Include actual entries when we do not find a Document-entry X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ed975b0efab75d1c7134b3d5b5a7eae1b91e0273;p=poi.git Include actual entries when we do not find a Document-entry git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771394 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java index 89b36c0d88..a09756c8b2 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java @@ -287,7 +287,7 @@ public final class HSSFWorkbook extends POIDocument implements org.apache.poi.ss } throw new IllegalArgumentException("The supplied POIFSFileSystem does not contain a BIFF8 'Workbook' entry. " - + "Is it really an excel file?"); + + "Is it really an excel file? Had: " + directory.getEntryNames()); } /**