pub fn print_error<R>(err: &StructError<R>)where
R: DomainReason,Expand description
Print an error with its full source chain to stderr.
This is a convenience wrapper around StructError::display_chain()
intended for binary/CLI entry points.
ยงExample
use orion_error::{cli::print_error, StructError, UnifiedReason};
let err = StructError::from(UnifiedReason::system_error())
.with_detail("config not found");
print_error(&err);