From 14b0e8c0b633ca07bf66e942d81cc41905cc3055 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 10 Feb 2023 12:08:46 +0100 Subject: [PATCH] Ensure that "GetAnnotations" errors are propagated to the main-thread (PR 15267 follow-up) With the changes in PR 15267 we're now accidentally swallowing "GetAnnotations" errors, rather than propagating them to the main-thread as intended. --- src/core/worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/worker.js b/src/core/worker.js index 570cf9353..b77437fcf 100644 --- a/src/core/worker.js +++ b/src/core/worker.js @@ -544,6 +544,7 @@ class WorkerMessageHandler { }, reason => { finishWorkerTask(task); + throw reason; } ); });