Display line number when validation files because of field dependencies
This commit is contained in:
parent
6337291a9d
commit
3ee4174863
@ -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
@ -4,7 +4,7 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?6456ed62c9e0c" />
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?645badbfea216" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<meta name="theme-color" content="#aa4400" />
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
</head>
|
||||
<body class="loading">
|
||||
|
||||
<script src="assets/js/csvxmlV2.min.js?6456ed62c9e0d" type="text/javascript" async></script>
|
||||
<script src="assets/js/csvxmlV2.min.js?645badbfea217" type="text/javascript" async></script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user