From 2aa6027d8fd867d613f9f1f3cbd11ebdbb39f4e0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 17 May 2024 20:16:22 -0300 Subject: client: show uncaught errors in error level, not warn/debug --- src/static/js/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/static') diff --git a/src/static/js/client.js b/src/static/js/client.js index 769a4212..7f5990b9 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -230,8 +230,8 @@ function dispatchInternalEvent(event, eventName, ...args) { try { results.push(listener(...args)); } catch (error) { - console.warn(`Uncaught error in listener for ${infoName}.${eventName}`); - console.debug(error); + console.error(`Uncaught error in listener for ${infoName}.${eventName}`); + console.error(error); results.push(undefined); } } @@ -4330,8 +4330,8 @@ for (const [key, steps] of Object.entries(clientSteps)) { try { step(); } catch (error) { - console.warn(`During ${key}, failed to run ${step.name}`); - console.debug(error); + console.error(`During ${key}, failed to run ${step.name}`); + console.error(error); } } } -- cgit 1.3.0-6-gf8a5