Replies: 1 comment
-
|
@mode89 Yes, it's possible but only under some restrictions. You need to catch the (ns dude-ex
(:require [sci.core :as sci]))
(defn foobar []
(try (assoc 1 2 3)
(catch ^:sci/error #?(:clj Exception :cljs js/Error) e
(->> (sci/stacktrace e)
(sci/format-stacktrace)
(run! println)))))
(foobar)This works in both babashka and nbb/scittle. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there :)
Is there any way to get pretty stacktrace from an exception object?
It would be nice to see something similar to what scittle logs on an unhandled exception.
Beta Was this translation helpful? Give feedback.
All reactions