summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-16 16:51:56 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-16 16:51:56 (GMT)
commit26633f4c00d64eca243c3893b8ec106cfba46a71 (patch)
tree671c4e8c63079a32e5808dbde3f17875e7d2efb0
parent64d786379774f66e1205a5f86924b2586acfffd1 (diff)
downloadcpython-26633f4c00d64eca243c3893b8ec106cfba46a71.zip
cpython-26633f4c00d64eca243c3893b8ec106cfba46a71.tar.gz
cpython-26633f4c00d64eca243c3893b8ec106cfba46a71.tar.bz2
Put descr name in "bad memberdescr type" error message.
-rw-r--r--Python/structmember.c3
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;