Print the changelog when updating

This commit is contained in:
Roey Darwish Dror
2018-12-23 13:17:53 +02:00
parent badc6b665b
commit ee54107d2a
4 changed files with 15 additions and 7 deletions

View File

@@ -76,6 +76,9 @@ fn run() -> Result<(), Error> {
if !opt.dry_run {
if let Err(e) = self_update::self_update() {
print_warning(format!("Self update error: {}", e));
if let Some(cause) = e.cause() {
print_warning(format!("Caused by: {}", cause));
}
}
}
}