diff options
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 |
commit | 8190bf63ea9ae0c4f71c72e5818ce5197ec49113 (patch) | |
tree | 0cdd3efff13e35aecd53ba1aa81874f51dfa894c /src/static/js/search-worker.js | |
parent | 94b9895a5a0d836f9e91ef87779ac29a1b2c525f (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.js | 4 |
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() { |