mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 02:11:41 +02:00
⚡ Improve performance on error formating and reporting
This commit is contained in:
parent
c64e14859c
commit
2295d085d3
9 changed files with 56 additions and 69 deletions
|
@ -429,11 +429,11 @@
|
|||
|
||||
(= :params-validation (:code data))
|
||||
(app.common.pprint/pprint
|
||||
(sm/humanize-data (::sm/explain data)))
|
||||
(sm/humanize-explain (::sm/explain data)))
|
||||
|
||||
(= :data-validation (:code data))
|
||||
(app.common.pprint/pprint
|
||||
(sm/humanize-data (::sm/explain data)))
|
||||
(sm/humanize-explain (::sm/explain data)))
|
||||
|
||||
(= :service-error (:type data))
|
||||
(print-error! (.getCause ^Throwable error))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue