mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 12:06:14 +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}))
|
||||
(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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue