diff --git a/src/csv-file-validator.js b/src/csv-file-validator.js index d8d0a51..9e784d9 100644 --- a/src/csv-file-validator.js +++ b/src/csv-file-validator.js @@ -144,9 +144,9 @@ if (duplicates.indexOf(value) >= 0) { file.inValidMessages.push( _isFunction(header.uniqueError) - ? header.uniqueError(header.name, rowIndex + 1) + ? header.uniqueError(header.name, rowIndex + 2) : String( - header.name + " is not unique at the " + (rowIndex + 1) + "row" + header.name + " is not unique at the " + (rowIndex + 2) + "row" ) ); } else {