mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 23:56:12 +02:00
✨ Add better error reporting on zip file importation
This commit is contained in:
parent
23f7889cff
commit
d46274abf2
1 changed files with 6 additions and 3 deletions
|
@ -817,9 +817,12 @@
|
||||||
:errors (:errors file)
|
:errors (:errors file)
|
||||||
:file-id (:file-id data)})))))))
|
:file-id (:file-id data)})))))))
|
||||||
(rx/catch (fn [cause]
|
(rx/catch (fn [cause]
|
||||||
|
(let [data (ex-data cause)]
|
||||||
(log/error :hint (ex-message cause)
|
(log/error :hint (ex-message cause)
|
||||||
:file-id (:file-id data)
|
:file-id (:file-id data))
|
||||||
:cause cause)
|
(when-let [explain (:explain data)]
|
||||||
|
(js/console.log explain)))
|
||||||
|
|
||||||
(rx/of {:status :import-error
|
(rx/of {:status :import-error
|
||||||
:file-id (:file-id data)
|
:file-id (:file-id data)
|
||||||
:error (ex-message cause)
|
:error (ex-message cause)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue