Cleanup
This commit is contained in:
parent
426038c3cc
commit
2ed19cef99
3 changed files with 2 additions and 16 deletions
|
|
@ -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))))
|
||||
|
|
@ -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)
|
||||
|
|
@ -27,7 +27,6 @@
|
|||
(server/stop-server))
|
||||
|
||||
(comment
|
||||
(def sock (start-repl! "0.0.0.0:1666" {:env (atom {})}))
|
||||
@#'server/servers
|
||||
(stop-repl!)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue