danwrong / restler

REST client library for node.js
MIT License
1.99k stars 389 forks source link

If xml2js or yaml will failed we do not know #266

Closed jangot closed 10 months ago

jangot commented 4 years ago

If xml2js and yaml failed we will not get error and we get some strange errors when we try to call shortcutOptions. The function will try to set parsers.xml.options. It is wrong. With this pullrequest all functionality will work and we will get correct error when we try to use XML or YAML.