We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbdf869 commit d180775Copy full SHA for d180775
src/utils.jl
@@ -47,12 +47,12 @@ function showprov(io::IO, exs::AbstractVector;
47
print(io, "\n\n")
48
end
49
k = kind(ex)
50
- if isnothing(note) # use provided `note` otherwise
51
- note = i > 1 && k == K"macrocall" ? "in macro expansion" :
52
- i > 1 && k == K"$" ? "interpolated here" :
53
- "in source"
+ if isnothing(note)
+ fallback_note = i > 1 && k == K"macrocall" ? "in macro expansion" :
+ i > 1 && k == K"$" ? "interpolated here" :
+ "in source"
54
55
- highlight(io, sr; note=note, highlight_kwargs...)
+ highlight(io, sr; note=something(note, fallback_note), highlight_kwargs...)
56
57
if include_location
58
line, _ = source_location(sr)
0 commit comments