restify/clients

JsonClient swallows parse SyntaxError

lrowe opened this issue · 0 comments

lrowe commented

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.