Skip to content

Commit

Permalink
Ensure the backtrace is shown even if we can't show method candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Nov 6, 2015
1 parent d385e3e commit b21ba8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion base/replutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ function showerror(io::IO, ex::MethodError)
print(io, "This may have arisen from a call to the constructor $construct_type(...),",
"\nsince type constructors fall back to convert methods.")
end
show_method_candidates(io, ex)
try
show_method_candidates(io, ex)
catch
end
end

#Show an error by directly calling jl_printf.
Expand Down

0 comments on commit b21ba8e

Please sign in to comment.