Skip to content

Commit

Permalink
Merge pull request #267 from animalia/master
Browse files Browse the repository at this point in the history
Fixes nested reasons being overwritten by outer spec's reason #171.
  • Loading branch information
ikitommi authored Jun 29, 2024
2 parents fae1726 + ae28029 commit ec02b0a
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 ec02b0a

Please sign in to comment.