mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 23:48:42 +00:00
🐛 Fix io exception incorrect reporting
This commit is contained in:
parent
06206f39b0
commit
d435b17452
@ -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…
x
Reference in New Issue
Block a user