diff --git a/base/errorshow.jl b/base/errorshow.jl index 56624c5b39868..a13e6868ffb73 100644 --- a/base/errorshow.jl +++ b/base/errorshow.jl @@ -872,7 +872,7 @@ function show_exception_stack(io::IO, stack::Vector) nexc = length(stack) for i = nexc:-1:1 if nexc != i - printstyled(io, "caused by [exception ", i, "]\n", color=:light_black) + printstyled(io, "\ncaused by:\n", color=:red) end exc, bt = stack[i] showerror(io, exc, bt, backtrace = bt!==nothing) diff --git a/test/client.jl b/test/client.jl index 37516fb00ea91..91ae108e9f0e4 100644 --- a/test/client.jl +++ b/test/client.jl @@ -11,7 +11,8 @@ end nested_error_pattern = r""" ERROR: DivideError: integer division error Stacktrace:.* - caused by \[exception 1\] + + caused by UndefVarError: __not_a_binding__ not defined Stacktrace:.* """s