mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 06:41:37 +02:00
✨ Improve backend and worker error handling
This commit is contained in:
parent
c026d05bc3
commit
701a98fab6
7 changed files with 112 additions and 47 deletions
|
@ -31,6 +31,10 @@
|
|||
(= 200 status)
|
||||
(rx/of body)
|
||||
|
||||
(= 413 status)
|
||||
(rx/throw {:type :validation
|
||||
:code :request-body-too-large})
|
||||
|
||||
(and (>= status 400)
|
||||
(map? body))
|
||||
(rx/throw body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue