We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 425ca53 commit 0a7a12bCopy full SHA for 0a7a12b
packages/bundler-plugin-core/src/utils/fetchWithRetry.ts
@@ -20,7 +20,7 @@ export const fetchWithRetry = async ({
20
21
for (let i = 0; i < retryCount + 1; i++) {
22
try {
23
- debug(`Attempting to fetch ${name}, attempt: ${i + 1}`);
+ debug(`Attempting to fetch ${name} from: ${url}, attempt: ${i + 1}`);
24
await delay(DEFAULT_RETRY_DELAY * i);
25
response = await fetch(url, requestData);
26
@@ -33,7 +33,7 @@ export const fetchWithRetry = async ({
33
const isLastAttempt = i + 1 === retryCount;
34
35
if (isLastAttempt) {
36
- red(`${name} failed after ${i} attempts`);
+ red(`${name} failed after ${i + 1} attempts`);
37
38
if (!(err instanceof BadResponseError)) {
39
throw err;
0 commit comments