summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2003-11-05 17:29:35 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2003-11-05 17:29:35 (GMT)
commit904ed86a777f5e55d370e997f8efb433052ca6e3 (patch)
treea719d887706fc3706e4b88cd233682f51daa61db
parent92bee360453e01262e31fe1b719f436adeb4ea2d (diff)
downloadcpython-904ed86a777f5e55d370e997f8efb433052ca6e3.zip
cpython-904ed86a777f5e55d370e997f8efb433052ca6e3.tar.gz
cpython-904ed86a777f5e55d370e997f8efb433052ca6e3.tar.bz2
Make undetected error on stack unwind a fatal error.
-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