From: Robert Bradshaw Date: Sun, 5 Dec 2010 07:21:54 +0000 (-0800) Subject: More graceful fail for fatal-errors option. X-Git-Tag: 0.14.alpha0~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e0c95ad2ad4b2083419c1c399ddca3338b04b557;p=cython.git More graceful fail for fatal-errors option. --- 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) ###