A warning, what the current value is, is now displayed if a disallowed

value is entered

Close #21
This commit is contained in:
2022-11-10 07:52:52 +01:00
parent 952c0b9b1f
commit 8de7ec1809
4 changed files with 6 additions and 6 deletions

View File

@ -170,7 +170,7 @@ class CsvxmlValidator {
continue;
}
this.errors.controlledLists.push("Disallowed value used for column " + fieldName + " at line " + lineCounter + " (Allowed values are: " + Object.values(allowedValues).join(", ") + ")");
this.errors.controlledLists.push("Disallowed value used for column " + fieldName + " at line " + lineCounter + " (Allowed values are: " + Object.values(allowedValues).join(", ") + "; current value is " + line[fieldName] + ")");
}
lineCounter++;
}