mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
bugfix
This commit is contained in:
parent
5589328a3c
commit
c94ecf5ca7
1 changed files with 4 additions and 1 deletions
|
|
@ -19,6 +19,9 @@
|
|||
(recur (.getSuperclass sk) (conj ks sk))
|
||||
ks)))
|
||||
|
||||
(defn- descendants-safe [type]
|
||||
(when-not (class? type) (descendants type)))
|
||||
|
||||
(defn- call-error-handler [handlers error request]
|
||||
(let [type (:type (ex-data error))
|
||||
ex-class (class error)
|
||||
|
|
@ -26,7 +29,7 @@
|
|||
(get handlers ex-class)
|
||||
(some
|
||||
(partial get handlers)
|
||||
(descendants type))
|
||||
(descendants-safe type))
|
||||
(some
|
||||
(partial get handlers)
|
||||
(super-classes ex-class))
|
||||
|
|
|
|||
Loading…
Reference in a new issue