From: Bill Erickson Date: Mon, 9 Dec 2019 16:47:30 +0000 (-0500) Subject: LP1855737 Don't send error object across shared worker port X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d5d79853959a252c8465f8d4e197e21c5bbdb78c;p=working%2FEvergreen.git LP1855737 Don't send error object across shared worker port Data must be string-ifiable to pass across a shared web worker message port. In Firefox, at least, errors encountered during IndexedDB / Lovefield operations are not candidates for automatic stringification. Avoid trying to send the error object back to the caller. Signed-off-by: Bill Erickson Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/web/js/ui/default/staff/offline-db-worker.js b/Open-ILS/web/js/ui/default/staff/offline-db-worker.js index 32399001e7..3e3780ebd4 100644 --- a/Open-ILS/web/js/ui/default/staff/offline-db-worker.js +++ b/Open-ILS/web/js/ui/default/staff/offline-db-worker.js @@ -340,7 +340,6 @@ function dispatchRequest(port, data) { function replyError(err) { console.error('shared worker replying with error', err); data.status = 'ERR'; - data.error = err; port.postMessage(data); }