diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-16 16:51:56 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-16 16:51:56 (GMT) |
commit | 26633f4c00d64eca243c3893b8ec106cfba46a71 (patch) | |
tree | 671c4e8c63079a32e5808dbde3f17875e7d2efb0 /Python/structmember.c | |
parent | 64d786379774f66e1205a5f86924b2586acfffd1 (diff) | |
download | cpython-26633f4c00d64eca243c3893b8ec106cfba46a71.zip cpython-26633f4c00d64eca243c3893b8ec106cfba46a71.tar.gz cpython-26633f4c00d64eca243c3893b8ec106cfba46a71.tar.bz2 |
Put descr name in "bad memberdescr type" error message.
Diffstat (limited to 'Python/structmember.c')
-rw-r--r-- | Python/structmember.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |