summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.go b/lib.go
index 81f1e53..424d3f9 100644
--- a/lib.go
+++ b/lib.go
@@ -196,7 +196,7 @@ func CellNameToCoordinates(cell string) (int, int, error) {
return -1, -1, fmt.Errorf(msg, cell, err)
}
if row > TotalRows {
- return -1, -1, fmt.Errorf("row number exceeds maximum limit")
+ return -1, -1, ErrMaxRows
}
col, err := ColumnNameToNumber(colname)
return col, row, err