summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-09-16 02:17:34 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-17 13:53:03 +0300
commitc79861a14e671ea037f550dbf5c2ae9e84fb3803 (patch)
treec48cc768f354e6f61952d6f4a041ae4027bd70cd /source4
parente2d6b64219b883363b4d1d92db27bf180c887d07 (diff)
downloadsamba-c79861a14e671ea037f550dbf5c2ae9e84fb3803.tar.gz
samba-c79861a14e671ea037f550dbf5c2ae9e84fb3803.tar.bz2
samba-c79861a14e671ea037f550dbf5c2ae9e84fb3803.zip
s4-pyrpc: Print location and type name we got when checking for types
Diffstat (limited to 'source4')
-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 651f8f11f5..c3bc83877c 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, __location__ ": Expected type '%s' for '%s' of type '%s'", (type)->tp_name, #var, Py_TYPE(var)->tp_name); \
fail; \
}