« get me outta code hell

client: show uncaught errors in error level, not warn/debug - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-17 20:16:22 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:55 -0300
commit2aa6027d8fd867d613f9f1f3cbd11ebdbb39f4e0 (patch)
treea78eba1f92a41b2723db106c1fc975cb39d5b455 /src
parentfec9c6556e181fc68068eae3db9e8ec81208221d (diff)
client: show uncaught errors in error level, not warn/debug
Diffstat (limited to 'src')
-rw-r--r--src/static/js/client.js8
1 files changed, 4 insertions, 4 deletions
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);
     }
   }
 }