Skip to content

Commit

Permalink
Fix nested error on json parse
Browse files Browse the repository at this point in the history
  • Loading branch information
floatdrop committed Apr 8, 2015
1 parent a790ee2 commit 82fa89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function got(url, opts, cb) {
try {
data = JSON.parse(data);
} catch (e) {
err = new GotError('Parsing ' + url + ' response failed', err);
err = new GotError('Parsing ' + url + ' response failed', e);
}
}

Expand Down

0 comments on commit 82fa89c

Please sign in to comment.