mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
Merge pull request #6446 from penpot/niwinz-staging-bugfixes-2
🐛 Properly propagate export errors from worker to main thread
This commit is contained in:
commit
5199b306aa
@ -421,11 +421,9 @@
|
|||||||
:uri uri}))
|
:uri uri}))
|
||||||
(rx/catch
|
(rx/catch
|
||||||
(fn [cause]
|
(fn [cause]
|
||||||
(rx/of (ex/raise :type :internal
|
(rx/of {:type :error
|
||||||
:code :export-error
|
:file-id (:id file)
|
||||||
:hint "unexpected error on exporting file"
|
:hint (ex-message cause)})))))))
|
||||||
:file-id (:id file)
|
|
||||||
:cause cause))))))))
|
|
||||||
|
|
||||||
(= format :legacy-zip)
|
(= format :legacy-zip)
|
||||||
(->> (rx/from files)
|
(->> (rx/from files)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user