Skip to content

Commit

Permalink
Merge pull request #1 from dhirajjadhavrao/dhirajjadhavrao-patch-1
Browse files Browse the repository at this point in the history
Generic data index for error message implemented
  • Loading branch information
dhirajjadhavrao authored May 11, 2021
2 parents f846554 + 853df72 commit 5a69529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/csv-file-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5a69529

Please sign in to comment.