git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a33cd
)
Use friendly NTSTATUS message in python code when possible.
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 17 Jun 2008 12:21:02 +0000
(14:21 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Tue, 17 Jun 2008 12:21:02 +0000
(14:21 +0200)
source/libcli/util/pyerrors.h
patch
|
blob
|
history
diff --git
a/source/libcli/util/pyerrors.h
b/source/libcli/util/pyerrors.h
index aaa35b4d2606b6353225ac09b0aeaba4ffaba722..47e6f58b5db781d81f17f207671d229052e577d0 100644
(file)
--- 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))