Commits

Meikel Brandmeyer committed dfc595a

Show causetrace in non-interactive Repls

Fixes #9

Comments (0)

Files changed (1)

src/main/clojure/vimclojure/repl.clj

 
 (ns vimclojure.repl
   (:use
-     [vimclojure.util :only (stream->seq pretty-print)])
+     [vimclojure.util :only (stream->seq pretty-print pretty-print-causetrace)])
   (:import
      (clojure.lang Var Compiler LineNumberingPushbackReader)))
 
             (set! *2 *1)
             (set! *1 result))))
       (catch Throwable e
-        (println e)
+        (if (= id -1)
+          (pretty-print-causetrace e)
+          (println e))
         (set! *e e)))))