WIP: s4-pyrpc: Print the type name we got when checking for types msds-intid-wip
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 15 Sep 2010 23:17:34 +0000 (02:17 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Wed, 15 Sep 2010 23:17:34 +0000 (02:17 +0300)
source4/librpc/rpc/pyrpc.h

index fb5f35fcf13907306821d543d38cfc638e96e940..acb58a07ff23e92167648b85ea25bf89e936ace8 100644 (file)
@@ -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; \
        }