You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/07/04 13:43:00 UTC
[commons-imaging] 05/05: Use input parameter in exception message
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit 14635a910dcf1b931254688f6fc2dd1e037df125
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 4 09:42:39 2023 -0400
Use input parameter in exception message
---
src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java b/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java
index 47d11c4a..ff64f36a 100644
--- a/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java
+++ b/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java
@@ -233,7 +233,7 @@ public final class BinaryFunctions {
try {
return IOUtils.toByteArray(is, Allocator.check(length));
} catch (IOException e) {
- throw new IOException(exception + " length: " + length);
+ throw new IOException(exception + ", name: " + name + ", length: " + length);
}
}