Skip to content

Commit

Permalink
improve print_reports(::IO, ::Vector{ToplevelErrorReport})
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Aug 24, 2023
1 parent 8f740e3 commit 0b229d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ui/print.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ function print_reports(io::IO,
end

for report in reports
s = string("┌ @ ", (config.fullpath ? tofullpath : identity)(string(report.file)), ':', report.line, ' ')
printlnstyled(io, s; color)
filepath = (config.fullpath ? tofullpath : identity)(report.file)
printlnstyled(io, "┌ @ ", filepath, ':', report.line, ' '; color)

errlines = with_bufferring(arg) do io
print_report(io, report)
end |> strip
println(io, join(string.(rail, split(errlines, '\n')), '\n'))
join(io, string.(rail, split(errlines, '\n')), '\n')
println(io)

s = string('', ''^(length(s)-1))
printlnstyled(io, s; color)
printlnstyled(io, '', ''^(length(s)-1); color)
end
end |> postprocess |> (x->print(io::IO,x))

Expand Down

0 comments on commit 0b229d5

Please sign in to comment.