change the exception message

This commit is contained in:
Dana Jansens 2003-02-10 23:23:56 +00:00
parent 4ffa9585a5
commit 9676a6774b

View file

@ -17,7 +17,7 @@ namespace otk {
if (PyString_Check($input))
$1 = otk::ustring(PyString_AsString($input));
else
SWIG_exception(SWIG_TypeError, "ustring expected");
SWIG_exception(SWIG_TypeError, "string expected");
}
%typemap(in) const ustring & (otk::ustring temp) {
@ -25,7 +25,7 @@ namespace otk {
temp = otk::ustring(PyString_AsString($input));
$1 = &temp;
} else {
SWIG_exception(SWIG_TypeError, "ustring expected");
SWIG_exception(SWIG_TypeError, "string expected");
}
}