Skip to content

Commit

Permalink
chore: don't color punctuation in output diagnostics (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Nov 19, 2024
1 parent d824a1a commit 7a151d3
Showing 1 changed file with 4 additions and 5 deletions.
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

0 comments on commit 7a151d3

Please sign in to comment.