mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 17:51:39 +02:00
🐛 Fix image upload internal error.
This commit is contained in:
parent
cb23c8b093
commit
ec2683417f
4 changed files with 60 additions and 43 deletions
|
@ -229,13 +229,14 @@
|
|||
:timeout 3000})))
|
||||
|
||||
;; Print to the console some debug info.
|
||||
(js/console.group "Server Error")
|
||||
(js/console.info
|
||||
(with-out-str
|
||||
(pprint (dissoc error :explain))))
|
||||
(when-let [explain (:explain error)]
|
||||
(js/console.error explain))
|
||||
(js/console.endGroup "Server Error"))
|
||||
(js/console.group "Validation Error")
|
||||
(ex/ignoring
|
||||
(js/console.info
|
||||
(with-out-str
|
||||
(pprint (dissoc error :explain))))
|
||||
(when-let [explain (:explain error)]
|
||||
(js/console.error explain)))
|
||||
(js/console.groupEnd "Validation Error"))
|
||||
|
||||
;; This is a pure frontend error that can be caused by an active
|
||||
;; assertion (assertion that is preserved on production builds). From
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue