Merge pull request #6446 from penpot/niwinz-staging-bugfixes-2

🐛 Properly propagate export errors from worker to main thread
This commit is contained in:
Alejandro Alonso
2025-05-12 10:47:46 +02:00
committed by GitHub

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)