Skip to content

Commit fa5e785

Browse files
committed
just use Guava to get stacktrace as string
1 parent b110836 commit fa5e785

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/clj/cljs/repl.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
[java.net URL]
2929
[javax.xml.bind DatatypeConverter]
3030
[clojure.lang IExceptionInfo]
31-
[java.util.regex Pattern]))
31+
[java.util.regex Pattern]
32+
[com.google.common.base Throwables]))
3233

3334
(def ^:dynamic *cljs-verbose* false)
3435
(def ^:dynamic *repl-opts* nil)
@@ -365,7 +366,7 @@
365366
(catch Throwable e
366367
(when (:repl-verbose opts)
367368
(print "Failed to canonicalize stacktrace")
368-
(print (with-out-str (.printStacktrace e *out*)))
369+
(print (Throwables/getStackTraceAsString e))
369370
(flush))))]
370371
(if (vector? cst)
371372
(if (satisfies? IPrintStacktrace repl-env)

0 commit comments

Comments
 (0)