From 63e84bd79d4572f3e4201758127fb725bd0f0661 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 31 Dec 2013 15:11:44 +0000 Subject: [PATCH] Print out which actual value was out of range git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1554533 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java b/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java index 7f4e77b5c4..b1df28f221 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java @@ -256,7 +256,7 @@ public final class HSSFClientAnchor extends HSSFAnchor implements ClientAnchor { private void checkRange(int value, int minRange, int maxRange, String varName) { if (value < minRange || value > maxRange) - throw new IllegalArgumentException(varName + " must be between " + minRange + " and " + maxRange); + throw new IllegalArgumentException(varName + " must be between " + minRange + " and " + maxRange + ", but was: " + value); } @Override -- 2.39.5