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:
William S Fulton 2007-04-30 20:42:01 +00:00
commit a4c0660859

View file

@ -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());