Skip to content

Commit

Permalink
fix for 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Nov 1, 2023
1 parent d800e03 commit fee8bb5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ struct InterfaceError <: Exception
end

function Base.showerror(io::IO, ie::InterfaceError)
(; t, name, num, desc, obj, e) = ie
printstyled("InterfaceError: "; color=:red)
numstring = isnothing(num) ? "" : " $num"
println("test for $t :$name$numstring$desc threw a $(typeof(e)) \n For test object $obj:\n")
numstring = isnothing(ie.num) ? "" : " $(ie.num)"
println("test for $(ie.t) :$(ie.name)$(ie.numstring)$(ie.desc) threw a $(typeof(ie.e)) \n For test object $(ie.obj):\n")
Base.showerror(io, e)
end

Expand Down

0 comments on commit fee8bb5

Please sign in to comment.