This commit is contained in:
Michiel Borkent 2019-12-30 18:06:02 +01:00
parent 426038c3cc
commit 2ed19cef99
3 changed files with 2 additions and 16 deletions

View file

@ -78,11 +78,4 @@
(print-stack-trace tr n)
(when-let [cause (.getCause tr)]
(print "Caused by: " )
(recur cause n))))
(defn e
"REPL utility. Prints a brief stack trace for the root cause of the
most recent exception."
{:added "1.1"}
[]
(print-stack-trace (root-cause *e) 8))
(recur cause n))))

View file

@ -1,7 +1 @@
(ns babashka.impl.exceptions)
(def exception-bindings
{'ArithmeticException ArithmeticException
'java.lang.ArithmeticException ArithmeticException
'java.lang.AssertionError AssertionError
'AssertionError AssertionError})
(ns babashka.impl.exceptions)

View file

@ -27,7 +27,6 @@
(server/stop-server))
(comment
(def sock (start-repl! "0.0.0.0:1666" {:env (atom {})}))
@#'server/servers
(stop-repl!)
)