Show number in error message even for one error

Co-authored-by: Adrian <adrian.iosdev@gmail.com>
This commit is contained in:
Nilstrieb 2023-11-21 15:44:16 +00:00
parent 4fd68eb47b
commit 41e8d152dc
5025 changed files with 5026 additions and 5026 deletions

View file

@ -1465,7 +1465,7 @@ impl HandlerInner {
};
let errors = match self.deduplicated_err_count {
0 => Cow::from(""),
1 => Cow::from("aborting due to previous error"),
1 => Cow::from("aborting due to 1 previous error"),
count => Cow::from(format!("aborting due to {count} previous errors")),
};
if self.treat_err_as_bug() {