Better format errors

This commit is contained in:
Aode (lion) 2021-09-20 13:13:49 -05:00
parent f42e11ab4f
commit 27e7ae2e0c

View file

@ -277,7 +277,7 @@ where
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)
}
}