🐛 Fix image upload internal error.

This commit is contained in:
Andrey Antukh 2021-02-04 11:28:53 +01:00 committed by Hirunatan
parent cb23c8b093
commit ec2683417f
4 changed files with 60 additions and 43 deletions

View file

@ -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