change the exception message
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
wrap/ustring.i
→
wrap/ustring.i
@@ -17,7 +17,7 @@ %typemap(in) ustring {
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 @@ if (PyString_Check($input)) {
temp = otk::ustring(PyString_AsString($input)); $1 = &temp; } else { - SWIG_exception(SWIG_TypeError, "ustring expected"); + SWIG_exception(SWIG_TypeError, "string expected"); } }