diff --git a/package.json b/package.json index ee34e65..bf75d31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "csv-file-validator", - "version": "1.10.2", + "version": "1.10.3", "description": "Validation of CSV file against user defined schema (returns back object with data and invalid messages)", "main": "./src/csv-file-validator.js", "repository": "https://github.com/shystruk/csv-file-validator.git", 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 {