summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index fe8aca5..df6f0e9 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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