Skip to content

Commit 1cdc3ac

Browse files
so much annoyance for such small bug
1 parent 61ef44a commit 1cdc3ac

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/mocks/scripts/utils.mts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ export async function downloadWithRetry(
7575

7676
return await response.text();
7777
} catch (error) {
78+
// 404 may be expected (and isn't really recoverable)
79+
if (error instanceof Http404Error) {
80+
throw error;
81+
}
82+
7883
const errorMessage = error instanceof Error ? error.message : String(error);
7984
if (currentAttempt >= maxAttempts) {
8085
throw error;

0 commit comments

Comments
 (0)