From fee8bb5b8e1ce0d65cce0e75e2cf1865de42a2af Mon Sep 17 00:00:00 2001 From: rafaqz Date: Wed, 1 Nov 2023 14:29:45 +0100 Subject: [PATCH] fix for 1.6 --- src/test.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test.jl b/src/test.jl index 2d939df..1c8e1c0 100644 --- a/src/test.jl +++ b/src/test.jl @@ -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