Skip to content
Permalink
Browse files
MIME4J-273 Add limit and position to LimitedInputStream exception mes…
…sage
  • Loading branch information
chibenwa committed Jul 6, 2020
1 parent d7643b9 commit d6c477cdf10327ab09352b1a39c7cddf13021ea5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -36,7 +36,7 @@ public LimitedInputStream(InputStream instream, long limit) {

private void enforceLimit() throws IOException {
if (position >= limit) {
throw new IOException("Input stream limit exceeded");
throw new IOException("Input stream limit exceeded. Limit was " + limit + " and position " + position);
}
}

0 comments on commit d6c477c

Please sign in to comment.