Fork me on GitHub
#babashka
<
2019-10-04
>
borkdude21:10:19

bb master now has throw:

$ bb '(throw (ex-info "dude" {:a 1}))'
clojure.lang.ExceptionInfo: dude [at line 1, column 1]

sogaiu23:10:39

nice! it worked here on linux too (i presume you removed the extra lines?):

$ bb '(throw (ex-info "dude" {:a 1}))'
clojure.lang.ExceptionInfo: dude [at line 1, column 1]
{:type :sci/error, :row 1, :col 1, :a 1}
 at sci.impl.utils$re_throw_with_location_of_node.invokeStatic (utils.cljc:63)
    sci.impl.interpreter$eval_do$fn__8100.invoke (interpreter.cljc:62)
    sci.impl.interpreter$eval_do.invokeStatic (interpreter.cljc:62)
    sci.impl.interpreter$eval_string.invokeStatic (interpreter.cljc:348)
    sci.core$eval_string.invokeStatic (core.cljc:5)
    babashka.main$main$fn__8611.invoke (main.clj:231)
    babashka.main$main.invokeStatic (main.clj:224)
    babashka.main$main.doInvoke (main.clj:170)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invokeStatic (core.clj:665)
    babashka.main$_main.invokeStatic (main.clj:262)
    babashka.main$_main.doInvoke (main.clj:262)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    babashka.main.main (:-1)