Put descr name in "bad memberdescr type" error message.

This commit is contained in:
Jeremy Hylton 2001-10-16 16:51:56 +00:00
parent 64d7863797
commit 26633f4c00
1 changed files with 2 additions and 1 deletions

View File

@ -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;