Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
16d43948
Commit
16d43948
authored
May 24, 2016
by
Andreas Bergmeier
Browse files
Increase available information on invocation error.
parent
bd986fe5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+8
-0
No files found.
include/pybind11/pybind11.h
View file @
16d43948
...
@@ -422,6 +422,14 @@ protected:
...
@@ -422,6 +422,14 @@ protected:
msg
+=
it2
->
signature
;
msg
+=
it2
->
signature
;
msg
+=
"
\n
"
;
msg
+=
"
\n
"
;
}
}
msg
+=
" Invoked with: "
;
tuple
args_
(
args
,
true
);
for
(
std
::
size_t
ti
=
0
;
ti
!=
args_
.
size
();
++
ti
)
{
msg
+=
static_cast
<
std
::
string
>
(
static_cast
<
object
>
(
args_
[
ti
]).
str
());
if
((
ti
+
1
)
!=
args_
.
size
()
)
msg
+=
", "
;
}
PyErr_SetString
(
PyExc_TypeError
,
msg
.
c_str
());
PyErr_SetString
(
PyExc_TypeError
,
msg
.
c_str
());
return
nullptr
;
return
nullptr
;
}
else
if
(
!
result
)
{
}
else
if
(
!
result
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment