diff --git a/index.js b/index.js index 3e46cca..b3f8bd8 100644 --- a/index.js +++ b/index.js @@ -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); } }