Skip to content

Commit aa96f9d

Browse files
committed
Have ring/route rethrow exceptions from events
1 parent a136385 commit aa96f9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tada/events/ring.clj

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
:incorrect 400
1616
:forbidden 403
1717
:unsupported 405
18-
:not-found 404)}))))
18+
:not-found 404
19+
;; if no anomaly (usually do to event :effect or :return throwing)
20+
;; rethrow the exception
21+
(throw e))}))))

0 commit comments

Comments
 (0)