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
commit 5199b306aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)