« get me outta code hell

client: report errors setting up search worker - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js/search-worker.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-03 16:21:32 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:48 -0300
commit8190bf63ea9ae0c4f71c72e5818ce5197ec49113 (patch)
tree0cdd3efff13e35aecd53ba1aa81874f51dfa894c /src/static/js/search-worker.js
parent94b9895a5a0d836f9e91ef87779ac29a1b2c525f (diff)
client: report errors setting up search worker
Diffstat (limited to 'src/static/js/search-worker.js')
-rw-r--r--src/static/js/search-worker.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/static/js/search-worker.js b/src/static/js/search-worker.js
index 24412b22..166be2a2 100644
--- a/src/static/js/search-worker.js
+++ b/src/static/js/search-worker.js
@@ -13,6 +13,10 @@ postStatus('alive');
 main().then(
   () => {
     postStatus('ready');
+  },
+  error => {
+    console.error(`Search worker setup error:`, error);
+    postStatus('setup-error');
   });
 
 async function main() {