🐛 Properly propagate export errors from worker to main thread

This commit is contained in:
Andrey Antukh 2025-05-09 11:15:04 +02:00
parent 9be569c54c
commit fc5d9659d6

View file

@ -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)