From e3d4add0b9f9bd16c841f0492ab4ed7d039335e7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 11 Aug 2016 08:41:30 -0600 Subject: [PATCH] fix https://github.com/Daplie/letsencrypt-cli/issues/20, use corret error object e instead of err --- lib/get-acme-urls.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }