You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/07/17 02:54:03 UTC
[james-mime4j] branch master updated: MIME4J-273 Add limit and
position to LimitedInputStream exception message
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 <bt...@linagora.com>
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org