From fc5d9659d6dc08a9094f53dcbecdf21678a53a35 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 9 May 2025 11:15:04 +0200 Subject: [PATCH] :bug: Properly propagate export errors from worker to main thread --- frontend/src/app/worker/export.cljs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/worker/export.cljs b/frontend/src/app/worker/export.cljs index de0cc6b50..7c4a9969d 100644 --- a/frontend/src/app/worker/export.cljs +++ b/frontend/src/app/worker/export.cljs @@ -421,11 +421,9 @@ :uri uri})) (rx/catch (fn [cause] - (rx/of (ex/raise :type :internal - :code :export-error - :hint "unexpected error on exporting file" - :file-id (:id file) - :cause cause)))))))) + (rx/of {:type :error + :file-id (:id file) + :hint (ex-message cause)}))))))) (= format :legacy-zip) (->> (rx/from files)