Open PhilReinhold opened 10 months ago
Yep good idea. I don't know where the "caused by" into comes from, do you?
It looks like it's coming from this line? https://github.com/JuliaLang/julia/blob/bac3ba5697c21cfc5058dfdb85a829e756ba9c68/base/errorshow.jl#L977C25-L977C25
It looks like you could get the exception stack via current_exceptions()
https://docs.julialang.org/en/v1/manual/stacktraces/#Exception-stacks-and-[current_exceptions](@ref)
Is your feature request related to a problem? Please describe.
I have julia code which catches errors and adds context. For example:
When the above code gets executed in native julia, it shows the error stack trace and the "caused by" stack trace i.e.
However, when I run the same code in pythoncall , the "caused by" trace is not shown:
Without this information, it is more difficult to tell what went wrong.
Describe the solution you'd like Ideally, we would have the original stack trace shown below, e.g.