diff --git a/modules/reitit-ring/src/reitit/ring/coercion.cljc b/modules/reitit-ring/src/reitit/ring/coercion.cljc index 41c98627..295ba4de 100644 --- a/modules/reitit-ring/src/reitit/ring/coercion.cljc +++ b/modules/reitit-ring/src/reitit/ring/coercion.cljc @@ -172,10 +172,10 @@ ([request] (try (handler request) - (catch Exception e + (catch #?(:clj Exception :cljs js/Error) e (handle-coercion-exception e identity #(throw %))))) ([request respond raise] (try (handler request respond (fn [e] (handle-coercion-exception e respond raise))) - (catch Throwable e + (catch #?(:clj Exception :cljs js/Error) e (handle-coercion-exception e respond raise))))))))}))