diff --git a/src/clj_webtoolbox/routes/checked.clj b/src/clj_webtoolbox/routes/checked.clj index 5d93f77..c0f5339 100644 --- a/src/clj_webtoolbox/routes/checked.clj +++ b/src/clj_webtoolbox/routes/checked.clj @@ -16,7 +16,8 @@ (defmacro threaded-checks [request checks fail-response] `(let [result# (pred-> ~request no-errors? ~@checks)] - (if (request? result#) + (if (and (request? result#) + (not (no-errors? result#))) (if (response? ~fail-response) ~fail-response (~fail-response result#))