diff --git a/lib/get-acme-urls.js b/lib/get-acme-urls.js index 3075879..5ded272 100644 --- a/lib/get-acme-urls.js +++ b/lib/get-acme-urls.js @@ -30,8 +30,10 @@ module.exports.create = function (deps) { try { data = JSON.parse(data); } catch(e) { - err.raw = data; - err.stack += '\n' + data; + e.raw = data; + e.url = acmeDiscoveryUrl; + e.stack += '\n\nresponse data:\n' + + data + '\n\nacmeDiscoveryUrl:' + acmeDiscoveryUrl; cb(e); return; }