Skip to content

Commit

Permalink
Merge pull request #16 from Bronsa/master
Browse files Browse the repository at this point in the history
make condp-case actually throw on no matching clause
  • Loading branch information
ztellman committed Jan 8, 2014
2 parents 41d4c10 + 9fa3dbc commit 2ea070f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/potemkin/utils.clj
Expand Up @@ -76,7 +76,7 @@
~expr)))
(apply concat))
:else
~(when-not (even? (count cases))
~(if-not (even? (count cases))
`(throw (IllegalArgumentException. (str "no matching clause for " (pr-str val##))))
(last cases))))))

Expand Down

0 comments on commit 2ea070f

Please sign in to comment.