8000 Adds method name to "no method matches" error · QuantConnect/pythonnet@d21bc31 · GitHub
[go: up one dir, main page]

Skip to content

Commit d21bc31

Browse files
committed
Adds method name to "no method matches" error
1 parent 78b644b commit d21bc31

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-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
- Christian Heimes ([@tiran](https://github.com/tiran))

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
2828
- Fixed conversion of 'float' and 'double' values (#486)
2929
- Fixed 'clrmethod' for python 2 (#492)
3030
- Fixed double calling of constructor when deriving from .NET class (#495)
31+
- Fixed missing information on 'No method matches given arguments' by adding the method name
3132

3233

3334
## [2.3.0][] - 2017-03-11

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)
0