Skip to content

Commit d4ed7fd

Browse files
committed
PyJlError output tweaks, call showerror_string to try harder to avoid throwing exceptions in showing errors
1 parent b5ec894 commit d4ed7fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exception.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ struct PyJlError <: Exception
77
end
88

99
function show(io::IO, e::PyJlError)
10-
println(io, "An error occured in a Julia function called from Python:")
11-
_showerror_string(io, e.err, e.trace)
10+
print(io, "(in a Julia function called from Python)\nJULIA: ",
11+
showerror_string(e.err, e.trace))
1212
end
1313

1414

0 commit comments

Comments
 (0)