mirror of
https://github.com/penpot/penpot.git
synced 2025-07-24 13:27:14 +02:00
✨ Improve error reporting on background tasks
This commit is contained in:
parent
321b2c7c23
commit
9b78b2a432
4 changed files with 19 additions and 18 deletions
|
@ -10,7 +10,6 @@
|
|||
[app.common.exceptions :as ex]
|
||||
[app.common.logging :as l]
|
||||
[app.common.spec :as us]
|
||||
[app.common.uuid :as uuid]
|
||||
[clojure.spec.alpha :as s]
|
||||
[cuerdas.core :as str]))
|
||||
|
||||
|
@ -24,8 +23,7 @@
|
|||
[request error]
|
||||
(let [data (ex-data error)]
|
||||
(merge
|
||||
{:id (uuid/next)
|
||||
:path (:uri request)
|
||||
{:path (:uri request)
|
||||
:method (:request-method request)
|
||||
:hint (ex-message error)
|
||||
:params (:params request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue