diff --git a/packages/core/acme-client/src/util.js b/packages/core/acme-client/src/util.js index 14285975c..a869619da 100644 --- a/packages/core/acme-client/src/util.js +++ b/packages/core/acme-client/src/util.js @@ -57,7 +57,12 @@ async function retryPromise(fn, attempts, backoff, logger = log) { return data; } catch (e) { - if (aborted || ((backoff.attempts + 1) >= attempts)) { + if (aborted){ + logger(`用户取消重试`); + throw e; + } + if ( ((backoff.attempts + 1) >= attempts)) { + logger(`重试次数超过${attempts}次`); throw e; }