From 4778f17162cbe1bf56e510c91ab02883a62d79c8 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Sun, 8 Nov 2015 06:39:11 -0600 Subject: [PATCH] Ensure the backtrace is shown even if we can't show method candidates --- base/replutil.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/replutil.jl b/base/replutil.jl index 6fdcaaa958cd1..08d0881f6af7b 100644 --- a/base/replutil.jl +++ b/base/replutil.jl @@ -205,7 +205,11 @@ 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 + warn("Unable to show method candidates") + end end #Show an error by directly calling jl_printf.