pub fn write_error_chain(
err: &dyn Error,
stream: impl Write,
level: impl AsRef<str>,
color: impl DynColor + Copy,
) -> ResultExpand description
Format an error or warning chain.
ยงExample
error: Failed to install app
Caused By: Failed to install dependency
Caused By: Error writing failed `/home/ferris/deps/foo`: Permission deniedwarning: Failed to create registry entry for Python 3.12
Caused By: Security policy forbids chaining registry entries