Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: don't color punctuation in output diagnostics #222

Merged
merged 1 commit into from
Nov 19, 2024
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