From: Kamen Mazdrashki Date: Wed, 15 Sep 2010 23:17:34 +0000 (+0300) Subject: WIP: s4-pyrpc: Print the type name we got when checking for types X-Git-Url: http://git.samba.org/?p=kamenim%2Fsamba.git;a=commitdiff_plain;h=refs%2Fheads%2Fmsds-intid-wip WIP: s4-pyrpc: Print the type name we got when checking for types --- diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h index fb5f35fcf1..acb58a07ff 100644 --- a/source4/librpc/rpc/pyrpc.h +++ b/source4/librpc/rpc/pyrpc.h @@ -24,7 +24,7 @@ #define PY_CHECK_TYPE(type, var, fail) \ if (!PyObject_TypeCheck(var, type)) {\ - PyErr_Format(PyExc_TypeError, "Expected type %s for %s", (type)->tp_name, #var); \ + PyErr_Format(PyExc_TypeError, "Expected type %s for %s of type %s", (type)->tp_name, #var, Py_TYPE(var)->tp_name); \ fail; \ }