mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-30 14:32:13 +00:00
Indent causes in Debug representation with spaces
This commit is contained in:
parent
a97f8dc3eb
commit
ad275d587f
@ -319,9 +319,9 @@ impl Debug for Error {
|
||||
let mut chain = self.chain().skip(1).enumerate();
|
||||
if let Some((n, error)) = chain.next() {
|
||||
writeln!(f, "\nCaused by:")?;
|
||||
writeln!(f, "\t{}: {}", n, error)?;
|
||||
writeln!(f, " {}: {}", n, error)?;
|
||||
for (n, error) in chain {
|
||||
writeln!(f, "\t{}: {}", n, error)?;
|
||||
writeln!(f, " {}: {}", n, error)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user