Display line number when validation files because of field dependencies

This commit is contained in:
2023-05-10 16:45:01 +02:00
parent 6337291a9d
commit 3ee4174863
3 changed files with 5 additions and 5 deletions

View File

@ -141,9 +141,9 @@ class CsvxmlValidator {
for (let dependency of dependencies) {
if (line[dependency] === '') {
console.error("Dependency issue at column " + fieldName + ": Corresponding column " + dependency + " is missing");
console.error("Dependency issue at column " + fieldName + ": Corresponding column " + dependency + " is missing [on line " + lineCounter + "]");
console.log(line);
this.errors.dependentColumns.push("Dependency issue at column " + fieldName + " (current value: " + line[fieldName] + "): Corresponding column " + dependency + " is empty");
this.errors.dependentColumns.push("Dependency issue at column " + fieldName + " (current value: " + line[fieldName] + "): Corresponding column " + dependency + " is empty [on line " + lineCounter + "]");
}
}
}

File diff suppressed because one or more lines are too long