summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/util/errors.i2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/util/errors.i b/source4/libcli/util/errors.i
index d51c9e0ded..8d97daf537 100644
--- a/source4/libcli/util/errors.i
+++ b/source4/libcli/util/errors.i
@@ -22,6 +22,7 @@
if (!W_ERROR_IS_OK($1)) {
PyObject *obj = Py_BuildValue("(i,s)", $1.v, win_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
+ SWIG_fail;
} else if ($result == NULL) {
$result = Py_None;
}
@@ -31,6 +32,7 @@
if (NT_STATUS_IS_ERR($1)) {
PyObject *obj = Py_BuildValue("(i,s)", $1.v, nt_errstr($1));
PyErr_SetObject(PyExc_RuntimeError, obj);
+ SWIG_fail;
} else if ($result == NULL) {
$result = Py_None;
}