commit | 904ed86a777f5e55d370e997f8efb433052ca6e3 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Nov 05 17:29:35 2003 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Nov 05 17:29:35 2003 +0000 |
tree | a719d887706fc3706e4b88cd233682f51daa61db | |
parent | 92bee360453e01262e31fe1b719f436adeb4ea2d [diff] |
Make undetected error on stack unwind a fatal error.
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 @@ 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