Skip to content

Commit

Permalink
fix(report): don't color error message text to draw eyes back to it
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Sep 9, 2021
1 parent 1025530 commit 6422f82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/handlers/graphical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl GraphicalReportHandler {
f,
" {} {}",
severity_icon.style(severity_style),
diagnostic.style(severity_style)
diagnostic,
)?;
Ok(())
}
Expand All @@ -125,13 +125,13 @@ impl GraphicalReportHandler {
} else {
self.theme.characters.lbot
};
let msg = format!(
" {}{}{} {}",
char, self.theme.characters.hbar, self.theme.characters.rarrow, error
let prefix = format!(
" {}{}{}",
char, self.theme.characters.hbar, self.theme.characters.rarrow
)
.style(severity_style)
.to_string();
writeln!(f, "{}", msg)?;
writeln!(f, "{} {}", prefix, error)?;
}
}

Expand Down

0 comments on commit 6422f82

Please sign in to comment.