mirror of
https://github.com/penpot/penpot.git
synced 2025-03-16 01:31:22 -05:00
✨ Improve error stack trace reporting.
This commit is contained in:
parent
433d8cee9a
commit
449ca770c1
1 changed files with 5 additions and 2 deletions
|
@ -48,10 +48,13 @@
|
|||
|
||||
(defmethod handle-exception :default
|
||||
[err req]
|
||||
(log/error err "Unhandled exception on request:" (:path req))
|
||||
(log/error "Unhandled exception on request:" (:path req) "\n"
|
||||
(with-out-str
|
||||
(.printStackTrace err (java.io.PrintWriter. *out*))))
|
||||
{:status 500
|
||||
:body {:type :exception
|
||||
:message (ex-message err)}})
|
||||
:message (ex-message err)
|
||||
:data (ex-data err)}})
|
||||
|
||||
(defn handle
|
||||
[error req]
|
||||
|
|
Loading…
Add table
Reference in a new issue