diff --git a/src/java/org/apache/poi/ss/util/CellReference.java b/src/java/org/apache/poi/ss/util/CellReference.java index 63196ab3be..98a30040b2 100644 --- a/src/java/org/apache/poi/ss/util/CellReference.java +++ b/src/java/org/apache/poi/ss/util/CellReference.java @@ -133,10 +133,10 @@ public class CellReference { // TODO - "-1" is a special value being temporarily used for whole row and whole column area references. // so these checks are currently N.Q.R. if(pRow < -1) { - throw new IllegalArgumentException("row index may not be negative"); + throw new IllegalArgumentException("row index may not be negative, but had " + pRow); } if(pCol < -1) { - throw new IllegalArgumentException("column index may not be negative"); + throw new IllegalArgumentException("column index may not be negative, but had " + pCol); } _sheetName = pSheetName; _rowIndex=pRow;