You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an exception is caught and rethrown in a catch block, the location of the exception will be that of the form rethrowing it, and the actual (previous) line number won't be in the stack trace.
repro
e.clj:
(nse)
(defnthrow-err [] ;; Line 3
(throw (RuntimeException."oops")))
(defn-main [] ;; Line 6
(try
(throw-err)
(catch Exception e
(throw e)))) ;; Line 10
(when (= (System/getProperty"babashka.file") *file*)
(-main)) ;; Line 13
version
This is with babashka 0.7.0 so should be https://github.com/babashka/sci/tree/573ee0e2f2ecdfc30f9f4b0d306626cacd6d3f06.
platform
Mac, binary
problem
If an exception is caught and rethrown in a catch block, the location of the exception will be that of the form rethrowing it, and the actual (previous) line number won't be in the stack trace.
repro
e.clj:
Execution using bb:
expected behavior
Running with clojure:
The text was updated successfully, but these errors were encountered: