From 178cf2d01ffec701583c8b4e1ddcab506046094c Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 10 Dec 2025 16:43:16 +0100 Subject: [PATCH] Fix in error propagation during boot --- client/boot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/boot.ts b/client/boot.ts index ecb4576a..458cb918 100644 --- a/client/boot.ts +++ b/client/boot.ts @@ -312,7 +312,7 @@ async function cachedFetch(path: string): Promise { // Persist to localStorage localStorage.setItem(cacheKey, text); return text; - } catch { + } catch (e: any) { console.info("Falling back to cache for", path); // We may be offline, let's see if we have a cached config const text = localStorage.getItem(cacheKey); @@ -320,7 +320,7 @@ async function cachedFetch(path: string): Promise { // Yep! Let's use it return text; } else { - throw offlineError; + throw e; } } }