From ff775d1c89df322a551b56385cdc826df492a262 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Mon, 1 Aug 2022 19:14:56 +0100 Subject: [PATCH] bootstrap: add warning message on fallback --- bootstrap/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/index.js b/bootstrap/index.js index 83a5672e..8dedb91a 100644 --- a/bootstrap/index.js +++ b/bootstrap/index.js @@ -24,7 +24,8 @@ const init = async () => { // eval(await (await fetch(`http://localhost:1234/goosemod.${locale}.js`)).text()); try { eval(await (await fetch(`https://raw.githubusercontent.com/GooseMod/GooseMod/dist-dev/goosemod.${locale}.js?_`)).text()); - } catch { + } catch (e) { + console.warn('[GooseMod Bootstrap]', 'Failed to fetch with buildtime', e); eval(await (await fetch(`https://raw.githubusercontent.com/GooseMod/GooseMod/dist-dev/goosemod.${locale}.js?_${Date.now()}`)).text()); } };