mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 10:51:42 +02:00
✨ Report errors on events.
This commit is contained in:
parent
abb244c940
commit
3ce4769e8d
2 changed files with 66 additions and 38 deletions
|
@ -76,6 +76,7 @@
|
|||
|
||||
{:status 500
|
||||
:body {:type :server-error
|
||||
:code :assertion
|
||||
:data (-> edata
|
||||
(assoc :explain (explain-error edata))
|
||||
(dissoc :data))}}))
|
||||
|
@ -103,6 +104,7 @@
|
|||
:cause error)
|
||||
{:status 500
|
||||
:body {:type :server-error
|
||||
:code :unexpected
|
||||
:hint (ex-message error)
|
||||
:data edata}}))))
|
||||
|
||||
|
@ -132,7 +134,8 @@
|
|||
|
||||
:else
|
||||
{:status 500
|
||||
:body {:type :server-timeout
|
||||
:body {:type :server-error
|
||||
:code :psql-exception
|
||||
:hint (ex-message error)
|
||||
:state state}})))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue