Kaydet (Commit) 904ed86a authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Make undetected error on stack unwind a fatal error.

üst 92bee360
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment