Skip to content

Commit

Permalink
Fixes nested reasons being overwritten by outer spec's reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sardtok committed Aug 15, 2023
1 parent 8a3284f commit ae28029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec_tools/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
spec-reason (:reason this)
with-reason (fn [problem]
(cond-> problem
spec-reason
(and spec-reason (not (:reason problem)))
(assoc :reason spec-reason)))]
(if problems
(map with-reason problems))))
Expand Down

0 comments on commit ae28029

Please # to comment.