Better format errors

This commit is contained in:
Aode (lion) 2021-09-20 13:13:21 -05:00
parent 3a4d21b349
commit 90965d6ee9

View file

@ -17,7 +17,7 @@ pub(crate) struct Error {
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.kind)?;
write!(f, "{}\n", self.kind)?;
std::fmt::Display::fmt(&self.context, f)
}
}