Skip to content

Commit

Permalink
print traceback on crash
Browse files Browse the repository at this point in the history
  • Loading branch information
djugei committed May 16, 2024
1 parent 3935c17 commit f4ec979
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ fn upgrade(server: Url, blacklist: Vec<Str>, delta_cache: PathBuf, multi: MultiP
match res.unwrap() {
Err(e) => {
error!("{:?}", e);
for cause in e.chain() {
error!("caused by: {:#}", cause);
}
error!("if the error is temporary, you can try running the command again");
lasterror = Some(e);
}
Expand Down

0 comments on commit f4ec979

Please sign in to comment.