fix(report): don't color error message text to draw eyes back to it

This commit is contained in:
Kat Marchán 2021-09-08 18:29:41 -07:00
parent 10255304c4
commit 6422f82174
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 5 additions and 5 deletions

View File

@ -105,7 +105,7 @@ impl GraphicalReportHandler {
f,
" {} {}",
severity_icon.style(severity_style),
diagnostic.style(severity_style)
diagnostic,
)?;
Ok(())
}
@ -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)?;
}
}