Commit 16d43948 by Andreas Bergmeier

Increase available information on invocation error.

parent bd986fe5
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment