summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2019-05-27 12:56:08 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-05-30 07:12:11 +0000
commite1a4fb5291662ed07ce18d597816dd8d6c7787a5 (patch)
treeef9d616bb8e688f45a618cec592d55acd2e5b59d /source4/librpc
parent7f48fbcf7bad06a6df7812bb4fd3b0fca8edb4ea (diff)
downloadsamba-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>
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/pyrpc_util.c3
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;
}