You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When providing the wrong path to a file, the error given is invalid xml (status=WITH_ERRORS). Nothing in the error points to the real problem: the path provided is not a file.
Steps to Reproduce
constvalidator=require('xsd-schema-validator');constschemaFile='./path/to/schema.xsd';constfile='./foo.xml';// Wrong path - file does not existvalidator.validateXML({ file },schemaFile,function(err,result){if(err)throwerr;});
Expected Behavior
Error should give some indication that the file you're trying to test is not actually where you think it was.
Environment
Node v14.16.0
OS: Windows
Version 0.7.0
The text was updated successfully, but these errors were encountered:
Describe the Bug
When providing the wrong path to a file, the error given is
invalid xml (status=WITH_ERRORS)
. Nothing in the error points to the real problem: the path provided is not a file.Steps to Reproduce
Expected Behavior
Error should give some indication that the file you're trying to test is not actually where you think it was.
Environment
The text was updated successfully, but these errors were encountered: