Skip to content

Commit 079268a

Browse files
committed
Adds method name to "no method matches" error
1 parent 94c94f4 commit 079268a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/methodbinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ internal virtual IntPtr Invoke(IntPtr inst, IntPtr args, IntPtr kw, MethodBase i
520520

521521
if (binding == null)
522522
{
523-
Exceptions.SetError(Exceptions.TypeError, "No method matches given arguments");
523+
Exceptions.SetError(Exceptions.TypeError, "No method matches given arguments for " + methodinfo[0].Name);
524524
return IntPtr.Zero;
525525
}
526526

0 commit comments

Comments
 (0)