Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0967a12

Browse files
authored
Merge branch 'master' into pyobject-finalizer
2 parents f4f5032 + 611814c commit 0967a12

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
## Contributors
1414

15+
- Alexandre Catarino([@AlexCatarino](https://github.com/AlexCatarino))
1516
- Arvid JB ([@ArvidJB](https://github.com/ArvidJB))
1617
- Bradley Friedman ([@leith-bartrich](https://github.com/leith-bartrich))
1718
- Callum Noble ([@callumnoble](https://github.com/callumnoble))

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
9494
- Fixed `Python.Runtime.dll.config` on macOS ([#120][i120])
9595
- Fixed crash on `PythonEngine.Version` ([#413][i413])
9696
- Fixed `PythonEngine.PythonPath` issues ([#179][i179])([#414][i414])([#415][p415])
97+
- Fixed missing information on 'No method matches given arguments' by adding the method name
9798

9899
### Removed
99100

src/runtime/methodbinder.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,12 @@ internal virtual IntPtr Invoke(IntPtr inst, IntPtr args, IntPtr kw, MethodBase i
507507

508508
if (binding == null)
509509
{
510-
Exceptions.SetError(Exceptions.TypeError, "No method matches given arguments");
510+
var value = "No method matches given arguments";
511+
if (methodinfo != null && methodinfo.Length > 0)
512+
{
513+
value += $" for {methodinfo[0].Name}";
514+
}
515+
Exceptions.SetError(Exceptions.TypeError, value);
511516
return IntPtr.Zero;
512517
}
513518

0 commit comments

Comments
 (0)