summaryrefslogtreecommitdiff
path: root/source4/libcli/util
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-06-17 14:21:02 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-06-17 14:21:02 +0200
commitcceabcd2a4a4282aee8562852de32b29038e12a3 (patch)
tree141cda7e791e6542c76dbb6a820668bc394f3455 /source4/libcli/util
parent232fd06271d4012872e43a13dc67d2295555f65f (diff)
downloadsamba-cceabcd2a4a4282aee8562852de32b29038e12a3.tar.gz
samba-cceabcd2a4a4282aee8562852de32b29038e12a3.tar.bz2
samba-cceabcd2a4a4282aee8562852de32b29038e12a3.zip
Use friendly NTSTATUS message in python code when possible.
(This used to be commit 09cf8c7dd82bb95e2f8782782286869654d96375)
Diffstat (limited to 'source4/libcli/util')
-rw-r--r--source4/libcli/util/pyerrors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/util/pyerrors.h b/source4/libcli/util/pyerrors.h
index aaa35b4d26..47e6f58b5d 100644
--- a/source4/libcli/util/pyerrors.h
+++ b/source4/libcli/util/pyerrors.h
@@ -22,7 +22,7 @@
#define PyErr_FromWERROR(err) Py_BuildValue("(i,s)", W_ERROR_V(err), discard_const_p(char, win_errstr(err)))
-#define PyErr_FromNTSTATUS(status) Py_BuildValue("(i,s)", NT_STATUS_V(status), discard_const_p(char, nt_errstr(status)))
+#define PyErr_FromNTSTATUS(status) Py_BuildValue("(i,s)", NT_STATUS_V(status), discard_const_p(char, get_friendly_nt_error_msg(status)))
#define PyErr_SetWERROR(err) \
PyErr_SetObject(PyExc_RuntimeError, PyErr_FromWERROR(err))