diff --git a/web/shared-worker/worker/shared-worker.js b/web/shared-worker/worker/shared-worker.js --- a/web/shared-worker/worker/shared-worker.js +++ b/web/shared-worker/worker/shared-worker.js @@ -2,6 +2,8 @@ import localforage from 'localforage'; +import { getMessageForException } from 'lib/utils/errors.js'; + import { restoreBackup } from './backup.js'; import { processAppIdentityClientRequest } from './identity-client.js'; import { @@ -337,7 +339,7 @@ } catch (e) { port.postMessage({ id, - error: e.message, + error: getMessageForException(e), }); } })();