Commit 904ed86a authored by Jeremy Hylton's avatar Jeremy Hylton

Make undetected error on stack unwind a fatal error.

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