From e0c95ad2ad4b2083419c1c399ddca3338b04b557 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 4 Dec 2010 23:21:54 -0800 Subject: [PATCH] More graceful fail for fatal-errors option. --- Cython/Compiler/Errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Errors.py b/Cython/Compiler/Errors.py index 39c8097d..e2ec1d9e 100644 --- a/Cython/Compiler/Errors.py +++ b/Cython/Compiler/Errors.py @@ -140,7 +140,7 @@ def report_error(err): echo_file.write(line.encode('ASCII', 'replace')) num_errors = num_errors + 1 if Options.fatal_errors: - sys.exit(1) + raise InternalError, "abort" def error(position, message): #print "Errors.error:", repr(position), repr(message) ### -- 2.26.2