Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Watcher: print summary of load-time exception below stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Sierra committed Oct 17, 2010
1 parent 69191a3 commit 6808e6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/clojure/lazytest/watch.clj
Expand Up @@ -2,6 +2,7 @@
(:gen-class)
(:use [lazytest.reload :only (reload)]
[lazytest.tracker :only (tracker)]
[lazytest.color :only (colorize)]
[clojure.java.io :only (file)]
[clojure.string :only (join)])
(:require lazytest.runner.console
Expand All @@ -23,7 +24,10 @@
(println "\nDone.")))
(catch Throwable t
(println "ERROR:" t)
(.printStackTrace t))))
(.printStackTrace t)
(newline)
(println (colorize "ERROR while loading:" :red))
(println t))))

(defn reloading-runner [dirs run-fn report-fn]
(let [dirs (map file dirs)
Expand Down

0 comments on commit 6808e6e

Please sign in to comment.