Skip to content

Commit 061697a

Browse files
committed
On error, print-cause-trace instead of pprint
This allows the full cause trace to be viewed with clojure-test-pprint-result.
1 parent db01dcc commit 061697a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clojure-test-mode.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,12 @@
195195
(str (:expected event)))
196196
(when (fail-events (:type event))
197197
(str (:actual event)))
198-
(when (fail-events (:type event))
199-
(with-out-str (pprint (:actual event))))
198+
(case (:type event)
199+
:fail (with-out-str (pprint (:actual event)))
200+
:error (with-out-str
201+
(clojure.stacktrace/print-cause-trace
202+
(:actual event)))
203+
nil)
200204
(if (and (= (:major *clojure-version*) 1)
201205
(< (:minor *clojure-version*) 2))
202206
((file-position 2) 1)

0 commit comments

Comments
 (0)