diff --git a/backend/src/app/http/errors.clj b/backend/src/app/http/errors.clj index 18350d21d..47a9a4dde 100644 --- a/backend/src/app/http/errors.clj +++ b/backend/src/app/http/errors.clj @@ -218,6 +218,14 @@ :hint (ex-message error) :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 [cause request _] (let [cause' (ex-cause cause)]