Skip to content

Commit 4a65772

Browse files
authored
Highlight repeated function calls in stack traces (#54714)
As pointed out in #52334, stack traces of `StackOverflowError`s currently don't highlight recursions enough. Spotting the light black `(repeats $n times)` note in a colorful stack trace is difficult. This PR highlights this note in bold warning color.
1 parent 01af3e9 commit 4a65772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/errorshow.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ function print_stackframe(io, i, frame::StackFrame, n::Int, ndigits_max, modulec
768768

769769
StackTraces.show_spec_linfo(IOContext(io, :backtrace=>true), frame)
770770
if n > 1
771-
printstyled(io, " (repeats $n times)"; color=:light_black)
771+
printstyled(io, " (repeats $n times)"; color=Base.warn_color(), bold=true)
772772
end
773773
println(io)
774774

0 commit comments

Comments
 (0)