From 26633f4c00d64eca243c3893b8ec106cfba46a71 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Tue, 16 Oct 2001 16:51:56 +0000 Subject: Put descr name in "bad memberdescr type" error message. --- Python/structmember.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/structmember.c b/Python/structmember.c index 077be70..aa0ea9f 100644 --- a/Python/structmember.c +++ b/Python/structmember.c @@ -261,7 +261,8 @@ PyMember_SetOne(char *addr, PyMemberDef *l, PyObject *v) } break; default: - PyErr_SetString(PyExc_SystemError, "bad memberdescr type"); + PyErr_Format(PyExc_SystemError, + "bad memberdescr type for %s", l->name); return -1; } return 0; -- cgit v0.12