s4/messaging/py: Fix typo
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 23 May 2023 00:00:07 +0000 (12:00 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 May 2023 00:50:31 +0000 (00:50 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/messaging/pymessaging.c

index 203f2d14a834457ea389241312150cb8949d7731..ac0cc059c12f80ba9c91853a1151ccff7b779d9f 100644 (file)
@@ -239,7 +239,7 @@ static PyObject *py_imessaging_register(PyObject *self, PyObject *args, PyObject
        }
        if (!PyTuple_Check(callback_and_context)
            || PyTuple_Size(callback_and_context) != 2) {
-               PyErr_SetString(PyExc_ValueError, "Expected of size 2 for callback_and_context");
+               PyErr_SetString(PyExc_ValueError, "Expected tuple of size 2 for callback_and_context");
                return NULL;
        }