Skip to content

Commit 3129b15

Browse files
committed
chore: add error chain debug
1 parent 7cf0d9a commit 3129b15

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ async fn main() {
2626
} else {
2727
eprintln!("Error {}", err);
2828
}
29+
if log_enabled!(log::Level::Debug) {
30+
for e in err.chain().skip(1) {
31+
debug!("Caused by: {}", e);
32+
}
33+
}
2934
std::process::exit(1);
3035
}
3136
}

0 commit comments

Comments
 (0)