better error handling

This commit is contained in:
AJ ONeal 2018-05-09 23:48:52 -06:00
부모 bfc50ac9d2
커밋 3e23ea5f8d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -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'."