Skip to content

Commit

Permalink
Fix consistency of IT:: titles for errored tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hobovsky committed Mar 16, 2023
1 parent e6ff871 commit e68da8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/FactCheck.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ function Base.show(io::IO, f::Failure)
end

function Base.show(io::IO, e::Error)
println(io, "\n<IT::>", replace_lf(e.meta.msg != nothing ? "$(e.meta.msg)" : format_fact(e.expr)))
println(io, "\n<ERROR::>", replace_lf(sprint(showerror, e.err)))
println(io, "\n<IT::>", replace_lf(format_fact(e.expr)))
errorMsg = e.meta.msg != nothing ? sprint(print, e.meta.msg) : sprint(showerror, e.err)
println(io, "\n<ERROR::>", replace_lf(errorMsg))
println(io, "\n<LOG::-Stack trace>", replace_lf(sprint(showerror, e.err, e.backtrace)))
println(io, "\n<COMPLETEDIN::>")
end
Expand Down

0 comments on commit e68da8e

Please sign in to comment.