mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Use friendly NTSTATUS message in python code when possible.
(This used to be commit 09cf8c7dd82bb95e2f8782782286869654d96375)
This commit is contained in:
parent
232fd06271
commit
cceabcd2a4
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user