restify / clients

HttpClient, StringClient, and JsonClient extracted from restify
MIT License
57 stars 34 forks source link

JsonClient swallows parse SyntaxError #140

Closed lrowe closed 6 years ago

lrowe commented 7 years ago

See: https://github.com/restify/clients/blob/master/lib/JsonClient.js#L65

If the response is malformed the parse SyntaxError should be returned as the first argument to the callback to be handled there.