hagridctl: output errors during regenerate

This commit is contained in:
Vincent Breitmoser 2019-06-09 13:58:34 +02:00
parent 41edc08d49
commit 4707c23aa6
No known key found for this signature in database
GPG Key ID: 7BD18320DEADFA11
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ impl <'a> RegenerateStats<'a> {
self.prefix = fpr.to_string()[0..4].to_owned();
}
match result {
Err(_) => self.count_err += 1,
Err(e) => {
self.progress.println(format!("{}: {}", fpr, e.to_string()));
self.count_err += 1;
},
Ok(RegenerateResult::Updated) => self.count_updated += 1,
Ok(RegenerateResult::Unchanged) => self.count_unchanged += 1,
}