mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 07:56:11 +02:00
🐛 Fix io exception incorrect reporting
This commit is contained in:
parent
06206f39b0
commit
d435b17452
1 changed files with 8 additions and 0 deletions
|
@ -218,6 +218,14 @@
|
||||||
:hint (ex-message error)
|
:hint (ex-message error)
|
||||||
:data edata}}))))
|
:data edata}}))))
|
||||||
|
|
||||||
|
(defmethod handle-exception java.io.IOException
|
||||||
|
[cause _ _]
|
||||||
|
(l/wrn :hint "io exception" :cause cause)
|
||||||
|
{::rres/status 500
|
||||||
|
::rres/body {:type :server-error
|
||||||
|
:code :io-exception
|
||||||
|
:hint (ex-message cause)}})
|
||||||
|
|
||||||
(defmethod handle-exception java.util.concurrent.CompletionException
|
(defmethod handle-exception java.util.concurrent.CompletionException
|
||||||
[cause request _]
|
[cause request _]
|
||||||
(let [cause' (ex-cause cause)]
|
(let [cause' (ex-cause cause)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue