This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-mime4j.git
The following commit(s) were added to refs/heads/master by this push:
new d6c477c MIME4J-273 Add limit and position to LimitedInputStream
exception message
d6c477c is described below
commit d6c477cdf10327ab09352b1a39c7cddf13021ea5
Author: Benoit Tellier <[email protected]>
AuthorDate: Mon Jul 6 12:09:28 2020 +0700
MIME4J-273 Add limit and position to LimitedInputStream exception message
---
core/src/main/java/org/apache/james/mime4j/io/LimitedInputStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ public class LimitedInputStream extends PositionInputStream {
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);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]