mirror of
https://github.com/metosin/reitit.git
synced 2026-02-14 07:15:16 +00:00
ClojureScriptify Exceptions
This commit is contained in:
parent
7979c9de9d
commit
132240b422
1 changed files with 2 additions and 2 deletions
|
|
@ -172,10 +172,10 @@
|
||||||
([request]
|
([request]
|
||||||
(try
|
(try
|
||||||
(handler request)
|
(handler request)
|
||||||
(catch Exception e
|
(catch #?(:clj Exception :cljs js/Error) e
|
||||||
(handle-coercion-exception e identity #(throw %)))))
|
(handle-coercion-exception e identity #(throw %)))))
|
||||||
([request respond raise]
|
([request respond raise]
|
||||||
(try
|
(try
|
||||||
(handler request respond (fn [e] (handle-coercion-exception e respond raise)))
|
(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))))))))}))
|
(handle-coercion-exception e respond raise))))))))}))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue