mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 06:16:11 +02:00
✨ Minor enhacements on log processing.
This commit is contained in:
parent
c6054f7ab2
commit
1839397ebc
10 changed files with 83 additions and 108 deletions
|
@ -81,10 +81,7 @@
|
|||
(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)))
|
||||
(with-out-str (pprint error))))
|
||||
(js/console.groupEnd "Validation Error:"))
|
||||
|
||||
|
||||
|
@ -138,8 +135,7 @@
|
|||
(defmethod ptk/handle-error :server-error
|
||||
[{:keys [data hint] :as error}]
|
||||
(let [hint (or hint (:hint data) (:message data))
|
||||
info (with-out-str (pprint (dissoc data :explain)))
|
||||
expl (:explain data)
|
||||
info (with-out-str (pprint data))
|
||||
msg (str "Internal Server Error: " hint)]
|
||||
|
||||
(ts/schedule
|
||||
|
@ -150,7 +146,6 @@
|
|||
|
||||
(js/console.group msg)
|
||||
(js/console.info info)
|
||||
(when expl (js/console.error expl))
|
||||
(js/console.groupEnd msg)))
|
||||
|
||||
(defn on-unhandled-error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue