From 9f55c3605a2d1e2a5e829b10c57dae5490ebaa73 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 6 Feb 2026 16:36:57 +0800 Subject: [PATCH] chore: 1 --- packages/core/acme-client/src/util.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; }