Skip to content

Commit ab88ba3

Browse files
apaz-climaleadt
authored andcommitted
Print whether call or invoke in showerror
1 parent 22f58fc commit ab88ba3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

base/errorshow.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,11 @@ function showerror(io::IO, ex::MethodError)
262262
if ft <: Function && isempty(ft.parameters) && _isself(ft)
263263
f_is_function = true
264264
end
265-
print(io, "no method matching ")
265+
if is_arg_types
266+
print(io, "no method matching for invoke of ")
267+
else
268+
print(io, "no method matching for call to ")
269+
end
266270
show_signature_function(io, isa(f, Type) ? Type{f} : typeof(f))
267271
show_tuple_as_call(io, :function, arg_types; hasfirst=false, kwargs = !isempty(kwargs) ? Any[(k, typeof(v)) for (k, v) in kwargs] : nothing)
268272
end

0 commit comments

Comments
 (0)