Cleanup
This commit is contained in:
parent
426038c3cc
commit
2ed19cef99
3 changed files with 2 additions and 16 deletions
|
|
@ -79,10 +79,3 @@
|
||||||
(when-let [cause (.getCause tr)]
|
(when-let [cause (.getCause tr)]
|
||||||
(print "Caused by: " )
|
(print "Caused by: " )
|
||||||
(recur cause n))))
|
(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))
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1 @@
|
||||||
(ns babashka.impl.exceptions)
|
(ns babashka.impl.exceptions)
|
||||||
|
|
||||||
(def exception-bindings
|
|
||||||
{'ArithmeticException ArithmeticException
|
|
||||||
'java.lang.ArithmeticException ArithmeticException
|
|
||||||
'java.lang.AssertionError AssertionError
|
|
||||||
'AssertionError AssertionError})
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@
|
||||||
(server/stop-server))
|
(server/stop-server))
|
||||||
|
|
||||||
(comment
|
(comment
|
||||||
(def sock (start-repl! "0.0.0.0:1666" {:env (atom {})}))
|
|
||||||
@#'server/servers
|
@#'server/servers
|
||||||
(stop-repl!)
|
(stop-repl!)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue