@@ -113,22 +113,17 @@ function Base.show(io::IO, f::Failure)
113113end
114114
115115function Base. show (io:: IO , e:: Error )
116- println (io, " \n <IT::>" , replace_lf (e. meta. msg != nothing ? " $(e. meta. msg) " : format_fact (e. expr)))
117- println (io, " \n <ERROR::>" , replace_lf (sprint (showerror, e. err)))
116+ println (io, " \n <IT::>" , replace_lf (format_fact (e. expr)))
117+ errorMsg = e. meta. msg != nothing ? sprint (print, e. meta. msg) : sprint (showerror, e. err)
118+ println (io, " \n <ERROR::>" , replace_lf (errorMsg))
118119 println (io, " \n <LOG::-Stack trace>" , replace_lf (sprint (showerror, e. err, e. backtrace)))
119120 println (io, " \n <COMPLETEDIN::>" )
120121end
121122
122123function Base. show (io:: IO , s:: Success )
123- if s. rhs == :fact_throws_error
124- println (io, " \n <IT::>" , replace_lf (s. meta. msg != nothing ? " $(s. meta. msg) " : " Throws Error" ))
125- println (io, " \n <PASSED::>Test Passed" )
126- println (io, " \n <COMPLETEDIN::>" )
127- else
128- println (io, " \n <IT::>" , replace_lf (s. meta. msg != nothing ? " $(s. meta. msg) " : format_fact (s. expr)))
129- println (io, " \n <PASSED::>Test Passed" )
130- println (io, " \n <COMPLETEDIN::>" )
131- end
124+ println (io, " \n <IT::>" , replace_lf (format_fact (s. expr)))
125+ println (io, " \n <PASSED::>Test Passed" )
126+ println (io, " \n <COMPLETEDIN::>" )
132127end
133128
134129function Base. show (io:: IO , :: Pending )
0 commit comments