mirror of https://github.com/apache/poi.git
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
This commit is contained in:
parent
ece67b1a5f
commit
63e84bd79d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue