@@ -113,12 +113,12 @@ const DYNAMIC_CALL = "dynamic function invocation"
113
113
function Base. showerror (io:: IO , err:: InvalidIRError )
114
114
print (io, " InvalidIRError: compiling " , err. job. source, " resulted in invalid LLVM IR" )
115
115
for (kind, bt, meta) in err. errors
116
- print (io, " \n Reason: unsupported $kind " )
116
+ printstyled (io, " \n Reason: unsupported $kind " ; color = :red )
117
117
if meta != = nothing
118
118
if kind == RUNTIME_FUNCTION || kind == UNKNOWN_FUNCTION || kind == POINTER_FUNCTION || kind == DYNAMIC_CALL
119
- print (io, " (call to " , meta, " )" )
119
+ printstyled (io, " (call to " , meta, " )" ; color = :red )
120
120
elseif kind == DELAYED_BINDING
121
- print (io, " (use of '" , meta, " ')" )
121
+ printstyled (io, " (use of '" , meta, " ')" ; color = :red )
122
122
end
123
123
end
124
124
Base. show_backtrace (io, bt)
@@ -128,7 +128,7 @@ function Base.showerror(io::IO, err::InvalidIRError)
128
128
printstyled (
129
129
io,
130
130
" : catch this exception as `err` and call `code_typed(err; interactive = true)` to" ,
131
- " introspect the erronous code" ;
131
+ " introspect the erronous code with Cthulhu.jl " ;
132
132
color = :cyan ,
133
133
)
134
134
return
0 commit comments