Display line number when validation files because of field dependencies
This commit is contained in:
@ -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 + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
public/assets/js/csvxmlV2.min.js
vendored
2
public/assets/js/csvxmlV2.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user