From 4038946c14eff4f372e2757bec72a637114bd960 Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Wed, 11 May 2011 07:26:07 -0500 Subject: [PATCH] Fix frozen autorunner issue on compiler exceptions --- src/runner/koans.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/runner/koans.clj b/src/runner/koans.clj index dce51da..a09a0c1 100644 --- a/src/runner/koans.clj +++ b/src/runner/koans.clj @@ -38,7 +38,12 @@ (defn tests-pass? [file-path] (use '[path-to-enlightenment :only [meditations __ ___]]) - (load-file file-path)) + (try + (load-file file-path) + (catch Exception e + (println) + (println e) + false))) (defn namaste [] (println "\nYou have achieved clojure enlightenment. Namaste."))