summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-08 04:22:17 +0000
committerTim Potter <tpot@samba.org>2002-05-08 04:22:17 +0000
commit8e917f27f2d54180829696d23073f671df5b9216 (patch)
treed2a6ca73597093036aab9f7674ad9e0e0535a26e /source3
parent646183a78d82bf33c0ff051de4a628c367c42784 (diff)
downloadsamba-8e917f27f2d54180829696d23073f671df5b9216.tar.gz
samba-8e917f27f2d54180829696d23073f671df5b9216.tar.bz2
samba-8e917f27f2d54180829696d23073f671df5b9216.zip
Changed some error returns to return a werror tuple (status code and text
message) instead of just the status code. (This used to be commit 39f58333fa84dc05cac8d13cabb1f203c5cf2c62)
Diffstat (limited to 'source3')
-rw-r--r--source3/python/py_spoolss_printers.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/python/py_spoolss_printers.c b/source3/python/py_spoolss_printers.c
index b006e54d81..17c8af902a 100644
--- a/source3/python/py_spoolss_printers.c
+++ b/source3/python/py_spoolss_printers.c
@@ -145,8 +145,7 @@ PyObject *spoolss_getprinter(PyObject *self, PyObject *args, PyObject *kw)
/* Return value */
if (!W_ERROR_IS_OK(werror)) {
- PyErr_SetObject(spoolss_werror,
- PyInt_FromLong(W_ERROR_V(werror)));
+ PyErr_SetObject(spoolss_werror, py_werror_tuple(werror));
return NULL;
}
@@ -313,8 +312,7 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
/* Return value */
if (!W_ERROR_IS_OK(werror)) {
- PyErr_SetObject(spoolss_werror,
- PyInt_FromLong(W_ERROR_V(werror)));
+ PyErr_SetObject(spoolss_werror, py_werror_tuple(werror));
return NULL;
}