Display line number when validation files because of field dependencies

This commit is contained in:
Joshua Ramon Enslin 2023-05-10 16:45:01 +02:00
parent 6337291a9d
commit 3ee4174863
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
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

View File

@ -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>