mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 09:31:39 +02:00
🐛 Properly propagate export errors from worker to main thread
This commit is contained in:
parent
9be569c54c
commit
fc5d9659d6
1 changed files with 3 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue