mirror of https://github.com/zkat/miette.git
fix(report): don't color error message text to draw eyes back to it
This commit is contained in:
parent
10255304c4
commit
6422f82174
|
|
@ -105,7 +105,7 @@ impl GraphicalReportHandler {
|
||||||
f,
|
f,
|
||||||
" {} {}",
|
" {} {}",
|
||||||
severity_icon.style(severity_style),
|
severity_icon.style(severity_style),
|
||||||
diagnostic.style(severity_style)
|
diagnostic,
|
||||||
)?;
|
)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
@ -125,13 +125,13 @@ impl GraphicalReportHandler {
|
||||||
} else {
|
} else {
|
||||||
self.theme.characters.lbot
|
self.theme.characters.lbot
|
||||||
};
|
};
|
||||||
let msg = format!(
|
let prefix = format!(
|
||||||
" {}{}{} {}",
|
" {}{}{}",
|
||||||
char, self.theme.characters.hbar, self.theme.characters.rarrow, error
|
char, self.theme.characters.hbar, self.theme.characters.rarrow
|
||||||
)
|
)
|
||||||
.style(severity_style)
|
.style(severity_style)
|
||||||
.to_string();
|
.to_string();
|
||||||
writeln!(f, "{}", msg)?;
|
writeln!(f, "{} {}", prefix, error)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue