Make undetected error on stack unwind a fatal error.

This commit is contained in:
Jeremy Hylton 2003-11-05 17:29:35 +00:00
parent 92bee36045
commit 904ed86a77
1 changed files with 4 additions and 4 deletions

View File

@ -2306,10 +2306,10 @@ eval_frame(PyFrameObject *f)
else {
/* This check is expensive! */
if (PyErr_Occurred()) {
fprintf(stderr,
"XXX undetected error (why=%d)\n",
why);
why = WHY_EXCEPTION;
char buf[1024];
sprintf(buf, "Stack unwind with exception "
"set and why=%d", why);
Py_FatalError(buf);
}
}
#endif