From 3e23ea5f8d50bc08821305f91a902010257618cd Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 9 May 2018 23:48:52 -0600 Subject: [PATCH] better error handling --- node.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node.js b/node.js index 2bb3b96..e844a5b 100644 --- a/node.js +++ b/node.js @@ -452,6 +452,8 @@ ACME._finalizeOrder = function (me, options, validatedDomains) { return ACME._wait().then(pollCert); } + if (me.debug) console.debug("Error: bad status:\n" + JSON.stringify(resp.body, null, 2)); + if ('pending' === resp.body.status) { return Promise.reject(new Error( "Did not finalize order: status 'pending'."