Commit e8a178e8 authored by Robert Bradshaw's avatar Robert Bradshaw

Always report fatal errors.

Previously these could be suppressed if error holding was in place.

This was noticed in #1746.
parent a4ebd314
...@@ -145,8 +145,8 @@ def close_listing_file(): ...@@ -145,8 +145,8 @@ def close_listing_file():
listing_file.close() listing_file.close()
listing_file = None listing_file = None
def report_error(err): def report_error(err, use_stack=True):
if error_stack: if error_stack and use_stack:
error_stack[-1].append(err) error_stack[-1].append(err)
else: else:
global num_errors global num_errors
......
...@@ -343,7 +343,7 @@ def run_pipeline(pipeline, source, printtree=True): ...@@ -343,7 +343,7 @@ def run_pipeline(pipeline, source, printtree=True):
print(" %.3f seconds" % (time() - t)) print(" %.3f seconds" % (time() - t))
except CompileError as err: except CompileError as err:
# err is set # err is set
Errors.report_error(err) Errors.report_error(err, use_stack=False)
error = err error = err
except InternalError as err: except InternalError as err:
# Only raise if there was not an earlier error # Only raise if there was not an earlier error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment