nikku / node-xsd-schema-validator

A schema (XSD) validator for NodeJS
https://www.npmjs.com/package/xsd-schema-validator
MIT License
51 stars 24 forks source link

Spawn error #15

Closed dobobaie closed 6 years ago

dobobaie commented 6 years ago

Hi !

Can you add this code : .on('error', function(err) { callback(new Error(err)); });

After spawn function (line: 34 file: validator.js) because when spawn failed sometime exit event is not called and we can't debug without error event.

Thank you !

nikku commented 6 years ago

I'm not quite sure that I understand which scenario you're trying to support here. Under which circumstances does spawning fail?

Anyway, I'd accept a pull request regarding this change if you provide a test case with it.