Skip to content

Commit

Permalink
Make Julia exceptions wrapped in Python Exceptions more informative
Browse files Browse the repository at this point in the history
I have added a backtrace to the description of exceptions coming from Julia
that are wrapped in Python exceptions.

This makes it much easier to find the source of errors in Julia code being
called from Python functions.
  • Loading branch information
galenlynch committed Nov 5, 2018
1 parent 8eb62f2 commit dc2d5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exception.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ be called via Python C-API, it tries to not throw at all cost.
function showerror_string(e::T) where {T}
try
io = IOBuffer()
showerror(io, e)
showerror(io, e, catch_backtrace())
return String(take!(io))
catch
try
Expand Down

0 comments on commit dc2d5a0

Please sign in to comment.