git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cfb201
)
WIP: s4-pyrpc: Print the type name we got when checking for types
msds-intid-wip
author
Kamen Mazdrashki
<kamenim@samba.org>
Wed, 15 Sep 2010 23:17:34 +0000
(
02:17
+0300)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Wed, 15 Sep 2010 23:17:34 +0000
(
02:17
+0300)
source4/librpc/rpc/pyrpc.h
patch
|
blob
|
history
diff --git
a/source4/librpc/rpc/pyrpc.h
b/source4/librpc/rpc/pyrpc.h
index fb5f35fcf13907306821d543d38cfc638e96e940..acb58a07ff23e92167648b85ea25bf89e936ace8 100644
(file)
--- 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; \
}