From: Jelmer Vernooij Date: Tue, 17 Jun 2008 12:21:02 +0000 (+0200) Subject: Use friendly NTSTATUS message in python code when possible. X-Git-Tag: samba-4.0.0alpha5~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09cf8c7dd82bb95e2f8782782286869654d96375;p=thirdparty%2Fsamba.git Use friendly NTSTATUS message in python code when possible. --- diff --git a/source/libcli/util/pyerrors.h b/source/libcli/util/pyerrors.h index aaa35b4d260..47e6f58b5db 100644 --- a/source/libcli/util/pyerrors.h +++ b/source/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))