error chain
The list of errors from what went wrong down to why.
An error chain follows source() from an error to its cause, to that cause's cause, and so on.
Examples
while let Some(x) = e { eprintln!("{x}"); e = x.source(); }prints each layer in turn, for examplebad portand theninvalid digit found in string.
See also