diff --git a/src/main/java/com/univocity/parsers/common/TextParsingException.java b/src/main/java/com/univocity/parsers/common/TextParsingException.java index 5c751dda..9ed1546b 100644 --- a/src/main/java/com/univocity/parsers/common/TextParsingException.java +++ b/src/main/java/com/univocity/parsers/common/TextParsingException.java @@ -116,7 +116,7 @@ protected String getDetails() { * @return the record number when the exception occurred. */ public long getRecordNumber() { - return lineIndex; + return recordNumber; }