Change level used in print_error_count.

From `Fatal` to `Error`. It has no functional effect, but `Error` makes
more sense and lines up better with the `Warning` level used just above.
This commit is contained in:
Nicholas Nethercote 2024-02-12 16:34:39 +11:00
parent d4b77f64e4
commit 1f39c8b08f

View File

@ -993,10 +993,10 @@ pub fn print_error_count(&self, registry: &Registry) {
.emit_diagnostic(Diagnostic::new(Warning, DiagnosticMessage::Str(warnings)));
}
(_, 0) => {
inner.emit_diagnostic(Diagnostic::new(Fatal, errors));
inner.emit_diagnostic(Diagnostic::new(Error, errors));
}
(_, _) => {
inner.emit_diagnostic(Diagnostic::new(Fatal, format!("{errors}; {warnings}")));
inner.emit_diagnostic(Diagnostic::new(Error, format!("{errors}; {warnings}")));
}
}