Skip to content

Commit

Permalink
Added toast re: failed DLL load issue
Browse files Browse the repository at this point in the history
bumped version
  • Loading branch information
Mattk70 committed Mar 29, 2024
1 parent fc360b4 commit 5de16fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ console.error = function(message) {
};
// Implement error handling in the worker
self.onerror = function(message, file, lineno, colno, error) {
STATE.track && trackEvent(STATE.UUID, 'Unhandled Worker Error', error.message, customURLEncode(error.stack));
STATE.track && trackEvent(STATE.UUID, 'Unhandled Worker Error', message, customURLEncode(error?.stack));
if (message.includes('dynamic link library')) UI.postMessage({event: 'generate-alert', message: 'There has been an error loading the model. This may be due to missing AVX support. Chirpity AI models require AVX instructions to run. If you have AVX enabled and still see this notice, please refer to <a href="https://github.com/Mattk70/Chirpity-Electron/issues/84" target="_blank">this issue</a> on Github.'})
// Return false not to inhibit the default error handling
return false;
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chirpity",
"version": "1.6.4",
"version": "1.6.5",
"description": "Chirpity Nocmig",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 5de16fe

Please sign in to comment.