diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-01-26 17:31:50 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-01-26 17:31:50 +0100 |
commit | d30b6af9532c0ea4e9610b30d13e7a4d9b763834 (patch) | |
tree | 61416f1c3fe65e6ce46c55427f3deec0e387a7f3 | |
parent | 79255cec6a75cd96b05a42845ff39040d1a1dfbf (diff) | |
download | samba-d30b6af9532c0ea4e9610b30d13e7a4d9b763834.tar.gz samba-d30b6af9532c0ea4e9610b30d13e7a4d9b763834.tar.bz2 samba-d30b6af9532c0ea4e9610b30d13e7a4d9b763834.zip |
pyrpc: Raise proper NDR error codes with matching strings rather than mapping
to NTSTATUS first.
-rw-r--r-- | source4/librpc/rpc/pyrpc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h index 6d5193f57e..ae622b562c 100644 --- a/source4/librpc/rpc/pyrpc.h +++ b/source4/librpc/rpc/pyrpc.h @@ -48,7 +48,7 @@ typedef struct { PyAPI_DATA(PyTypeObject) dcerpc_InterfaceType; -#define PyErr_FromNdrError(err) PyErr_FromNTSTATUS(ndr_map_error2ntstatus(err)) +#define PyErr_FromNdrError(err) Py_BuildValue("(is)", err, ndr_map_error2string(err)) #define PyErr_SetNdrError(err) \ PyErr_SetObject(PyExc_RuntimeError, PyErr_FromNdrError(err)) |