mirror of
https://github.com/philmmanjaro/alma.git
synced 2025-12-06 19:39:20 +01:00
Display the entire error chain
This commit is contained in:
@@ -443,7 +443,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
error!("{}", error);
|
error!("{}", error);
|
||||||
if let Some(cause) = error.cause() {
|
for cause in (&error as &Fail).iter_causes() {
|
||||||
error!("Caused by: {}", cause);
|
error!("Caused by: {}", cause);
|
||||||
}
|
}
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user