commit | d6c477cdf10327ab09352b1a39c7cddf13021ea5 | [log] [tgz] |
---|---|---|
author | Benoit Tellier <btellier@linagora.com> | Mon Jul 06 12:09:28 2020 +0700 |
committer | Benoit Tellier <btellier@linagora.com> | Mon Jul 06 12:09:28 2020 +0700 |
tree | 8b230c4ff6bbd6561b7b5bb3d62886a09cb5167e | |
parent | d7643b9434dfd7897c41fb2d69d28db1bf13ef2f [diff] |
MIME4J-273 Add limit and position to LimitedInputStream exception message
diff --git a/core/src/main/java/org/apache/james/mime4j/io/LimitedInputStream.java b/core/src/main/java/org/apache/james/mime4j/io/LimitedInputStream.java index c32093c..1dd408e 100644 --- a/core/src/main/java/org/apache/james/mime4j/io/LimitedInputStream.java +++ b/core/src/main/java/org/apache/james/mime4j/io/LimitedInputStream.java
@@ -36,7 +36,7 @@ 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); } }