summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-08-22 14:49:10 +1000
committerAndrew Tridgell <tridge@samba.org>2010-08-22 14:57:34 +1000
commit24159a59a3b404346e7931ef8817d09eeeb0711f (patch)
treee01f4121ce725602b51e0a8d53cbdd68d984dbec /source4/librpc/rpc
parent34b86155743f0ef1916bc3ae15907961c230c9ab (diff)
downloadsamba-24159a59a3b404346e7931ef8817d09eeeb0711f.tar.gz
samba-24159a59a3b404346e7931ef8817d09eeeb0711f.tar.bz2
samba-24159a59a3b404346e7931ef8817d09eeeb0711f.zip
pidl: give the varible name for bad type in python calls
This makes it much clearer which argument to a function had the wrong type
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/pyrpc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h
index f49122a0ae..4ba9bd3e1f 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", (type)->tp_name); \
+ PyErr_Format(PyExc_TypeError, "Expected type %s for %s", (type)->tp_name, #var); \
fail; \
}