diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-05-27 12:56:08 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-05-30 07:12:11 +0000 |
commit | e1a4fb5291662ed07ce18d597816dd8d6c7787a5 (patch) | |
tree | ef9d616bb8e688f45a618cec592d55acd2e5b59d | |
parent | 7f48fbcf7bad06a6df7812bb4fd3b0fca8edb4ea (diff) | |
download | samba-e1a4fb5291662ed07ce18d597816dd8d6c7787a5.tar.gz |
s4 lib rpc pyrpc: Fix error message
Fix the error message returned when unable to initialise an event context.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | source4/librpc/rpc/pyrpc_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc_util.c b/source4/librpc/rpc/pyrpc_util.c index 29e501cdfef..e6227eaa604 100644 --- a/source4/librpc/rpc/pyrpc_util.c +++ b/source4/librpc/rpc/pyrpc_util.c @@ -136,7 +136,8 @@ PyObject *py_dcerpc_interface_init_helper(PyTypeObject *type, PyObject *args, Py ret->ev = s4_event_context_init(ret->mem_ctx); if (ret->ev == NULL) { - PyErr_SetString(PyExc_TypeError, "Expected loadparm context"); + PyErr_SetString(PyExc_TypeError, + "Unable to initialise event context"); Py_DECREF(ret); return NULL; } |