Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions crates/compilers/src/compile/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,13 +911,12 @@ impl<C: Compiler> fmt::Display for OutputDiagnostics<'_, C> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("Compiler run ")?;
if self.has_error() {
Paint::red("failed:")
write!(f, "{}:", "failed".red())
} else if self.has_warning() {
Paint::yellow("successful with warnings:")
write!(f, "{}:", "successful with warnings".yellow())
} else {
Paint::green("successful!")
}
.fmt(f)?;
write!(f, "{}!", "successful".green())
}?;

for err in &self.compiler_output.errors {
if !self.compiler_output.should_ignore(
Expand Down