From 526e19b23ea66950c5d792e8e7b207b6274ff8da Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Apr 2016 11:45:25 -0600 Subject: [PATCH] concatenate non-parseable response body to e.stack --- lib/get-acme-urls.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/get-acme-urls.js b/lib/get-acme-urls.js index 25ecdb0..3075879 100644 --- a/lib/get-acme-urls.js +++ b/lib/get-acme-urls.js @@ -30,6 +30,8 @@ module.exports.create = function (deps) { try { data = JSON.parse(data); } catch(e) { + err.raw = data; + err.stack += '\n' + data; cb(e); return; }