You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2018/05/02 17:29:24 UTC

svn commit: r1830779 - /poi/trunk/src/java/org/apache/poi/util/IOUtils.java

Author: kiwiwings
Date: Wed May  2 17:29:24 2018
New Revision: 1830779

URL: http://svn.apache.org/viewvc?rev=1830779&view=rev
Log:
add additional exception info to failing IOUtils.toByteArray

Modified:
    poi/trunk/src/java/org/apache/poi/util/IOUtils.java

Modified: poi/trunk/src/java/org/apache/poi/util/IOUtils.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/util/IOUtils.java?rev=1830779&r1=1830778&r2=1830779&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/util/IOUtils.java (original)
+++ poi/trunk/src/java/org/apache/poi/util/IOUtils.java Wed May  2 17:29:24 2018
@@ -166,7 +166,7 @@ public final class IOUtils {
         }
 
         if (len != Integer.MAX_VALUE && totalBytes < len) {
-            throw new EOFException("unexpected EOF");
+            throw new EOFException("unexpected EOF - expected len: "+len+" - actual len: "+totalBytes);
         }
 
         return baos.toByteArray();



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org