Skip to content

Commit

Permalink
Merge pull request #1700 from phillipj/debug-invalid-json
Browse files Browse the repository at this point in the history
debug() when JSON.parse() on a response body fails
  • Loading branch information
simov committed Jul 29, 2015
2 parents d4b9761 + d409a03 commit 7a42a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.js
Expand Up @@ -1047,7 +1047,7 @@ Request.prototype.onRequestResponse = function (response) {
try {
response.body = JSON.parse(response.body, self._jsonReviver)
} catch (e) {
// empty
debug('invalid JSON received', self.uri.href)
}
}
debug('emitting complete', self.uri.href)
Expand Down

0 comments on commit 7a42a98

Please sign in to comment.