fix https://github.com/Daplie/letsencrypt-cli/issues/20, use corret error object e instead of err
This commit is contained in:
parent
218497ab0e
commit
e3d4add0b9
|
@ -30,8 +30,10 @@ module.exports.create = function (deps) {
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
err.raw = data;
|
e.raw = data;
|
||||||
err.stack += '\n' + data;
|
e.url = acmeDiscoveryUrl;
|
||||||
|
e.stack += '\n\nresponse data:\n'
|
||||||
|
+ data + '\n\nacmeDiscoveryUrl:' + acmeDiscoveryUrl;
|
||||||
cb(e);
|
cb(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue