mirror of https://github.com/apache/poi.git
add additional exception info to failing IOUtils.toByteArray
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1830779 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
97d3599cf2
commit
1e5697909e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue