-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
REPLJulia's REPL (Read Eval Print Loop)Julia's REPL (Read Eval Print Loop)regressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous version
Description
This was noticed by @omus on the mailing list:
julia> type MyUndefVarError <: Exception
var::Symbol
end
julia> Base.showerror(io::IO, e::MyUndefVarError) = print(io, e.var, " not defined");
julia> throw(MyUndefVarError(:foo)) # Should show `ERROR: foo not defined`
ERROR: MyUndefVarError(:foo)The problem seems to be that the REPL is calling display_error in an obsolete world.
One solution could be for display_error to use eval or invokelatest (#19784) to call showerror, in order to get the latest method.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
REPLJulia's REPL (Read Eval Print Loop)Julia's REPL (Read Eval Print Loop)regressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous version