Report I/O errors with emit_fatal not emit_err
This commit is contained in:
parent
3cdd004e55
commit
94c43ccd87
3 changed files with 6 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue