Display the entire error chain

This commit is contained in:
Roey Darwish Dror 2019-06-18 09:03:39 +03:00
parent e25228e5a1
commit 8551a815c4

View File

@ -443,7 +443,7 @@ fn main() {
}
Err(error) => {
error!("{}", error);
if let Some(cause) = error.cause() {
for cause in (&error as &Fail).iter_causes() {
error!("Caused by: {}", cause);
}
exit(1);