diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-11-05 17:29:35 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-11-05 17:29:35 (GMT) |
commit | 904ed86a777f5e55d370e997f8efb433052ca6e3 (patch) | |
tree | a719d887706fc3706e4b88cd233682f51daa61db | |
parent | 92bee360453e01262e31fe1b719f436adeb4ea2d (diff) | |
download | cpython-904ed86a777f5e55d370e997f8efb433052ca6e3.zip cpython-904ed86a777f5e55d370e997f8efb433052ca6e3.tar.gz cpython-904ed86a777f5e55d370e997f8efb433052ca6e3.tar.bz2 |
Make undetected error on stack unwind a fatal error.
-rw-r--r-- | Python/ceval.c | 8 |
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 |