separate Python error message from the SWIG supplied one
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9727 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0eda1f9062
commit
a4c0660859
1 changed files with 1 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ namespace Swig {
|
|||
swig_msg += msg;
|
||||
}
|
||||
if (!PyErr_Occurred()) {
|
||||
swig_msg.insert(0, ": ");
|
||||
PyErr_SetString(error, getMessage());
|
||||
} else {
|
||||
SWIG_Python_AddErrorMsg(getMessage());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue