Permalink
Browse files

Catch all failures, not just Exception

Including things like StackOverflowError
  • Loading branch information...
1 parent 5643910 commit 6cc26c603c0449889b31a0c803804309f27d3fbc @trptcolin trptcolin committed Oct 1, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −3 project.clj
  2. +1 −1 src/koan_engine/util.clj
View
4 project.clj
@@ -2,6 +2,4 @@
:description "Koan Engine for Clojure projects."
:dependencies [[org.clojure/clojure "1.2.1"]
[fresh "1.0.2"]
- [jline "0.9.94" :exclusions [junit]]]
- :dev-dependencies [[swank-clojure "1.4.0-SNAPSHOT"
- :exclusions [org.clojure/clojure]]])
+ [jline "0.9.94" :exclusions [junit]]])
View
2 src/koan_engine/util.clj
@@ -34,7 +34,7 @@
([x] (fancy-assert x ""))
([x message]
`(try (safe-assert ~x ~message)
- (catch Exception e#
+ (catch Throwable e#
(throw (Exception. (str '~message "\n" '~x )
e#))))))

0 comments on commit 6cc26c6

Please sign in to comment.