1
Fork 0

Report I/O errors with emit_fatal not emit_err

This commit is contained in:
Ben Kimock 2024-01-01 22:34:07 -05:00
parent 3cdd004e55
commit 94c43ccd87
3 changed files with 6 additions and 14 deletions

View file

@ -332,7 +332,7 @@ impl Compiler {
// the global context.
_timer = Some(self.sess.timer("free_global_ctxt"));
if let Err((path, error)) = queries.finish() {
self.sess.dcx().emit_err(errors::FailedWritingFile { path: &path, error });
self.sess.dcx().emit_fatal(errors::FailedWritingFile { path: &path, error });
}
ret