mirror of
https://github.com/penpot/penpot.git
synced 2025-04-01 09:31:26 -05:00
🐛 Fix incorrect use of log/errorf.
This commit is contained in:
parent
716490be26
commit
e4eaa74b51
1 changed files with 7 additions and 7 deletions
|
@ -66,10 +66,10 @@
|
|||
(defmethod handle-exception :assertion
|
||||
[error request]
|
||||
(let [edata (ex-data error)]
|
||||
(log/errorf error
|
||||
(str "Assertion error\n"
|
||||
(get-context-string request edata)
|
||||
(with-out-str (expound/printer (:data edata)))))
|
||||
(log/error error
|
||||
(str "Assertion error\n"
|
||||
(get-context-string request edata)
|
||||
(with-out-str (expound/printer (:data edata)))))
|
||||
{:status 500
|
||||
:body (assoc edata :explain (with-out-str (expound/printer (:data edata))))}))
|
||||
|
||||
|
@ -87,9 +87,9 @@
|
|||
(defmethod handle-exception :default
|
||||
[error request]
|
||||
(let [edata (ex-data error)]
|
||||
(log/errorf error
|
||||
(str "Internal Error\n"
|
||||
(get-context-string request edata)))
|
||||
(log/error error
|
||||
(str "Internal Error\n"
|
||||
(get-context-string request edata)))
|
||||
(if (nil? edata)
|
||||
{:status 500
|
||||
:body {:type :server-error
|
||||
|
|
Loading…
Add table
Reference in a new issue