From 680079c55abf4570d99f11ff81497091ce0bf373 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Thu, 2 Jan 2025 23:44:31 +0800 Subject: [PATCH] Chore: show primary URL on failed fetch --- Build/lib/cache-filesystem.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/lib/cache-filesystem.ts b/Build/lib/cache-filesystem.ts index d04e85e4..fde92f83 100644 --- a/Build/lib/cache-filesystem.ts +++ b/Build/lib/cache-filesystem.ts @@ -398,7 +398,7 @@ export class Cache { } } - console.log(picocolors.red('[fetch error]'), picocolors.gray(error.url), error); + console.log(picocolors.red('[fetch error]'), picocolors.gray(`[${primaryUrl}]`), error); } } else { if ('name' in e) { @@ -418,7 +418,7 @@ export class Cache { } } - console.log(picocolors.red('[fetch error]'), picocolors.gray(primaryUrl), e); + console.log(picocolors.red('[fetch error]'), picocolors.gray(`[${primaryUrl}]`), e); } }