mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 11:16:11 +02:00
✨ Minor improvements on http reporting on 400 responses
This commit is contained in:
parent
5576b7568c
commit
57666e9173
3 changed files with 17 additions and 4 deletions
|
@ -81,7 +81,13 @@
|
|||
(js/console.group "Validation Error:")
|
||||
(ex/ignoring
|
||||
(js/console.info
|
||||
(with-out-str (pprint error))))
|
||||
(with-out-str (pprint (dissoc error :explain)))))
|
||||
|
||||
(when-let [explain (:explain error)]
|
||||
(js/console.group "Spec explain:")
|
||||
(js/console.log explain)
|
||||
(js/console.groupEnd "Spec explain:"))
|
||||
|
||||
(js/console.groupEnd "Validation Error:"))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue