commit: proper singular/plural for 'error(s)' in commit message

based on github pull request #5
cute-signatures
Timo Teräs 2017-08-23 09:02:23 +03:00
parent 16336ba265
commit e6e90a6463
1 changed files with 2 additions and 1 deletions

View File

@ -350,7 +350,8 @@ all_done:
if (!db->performing_self_upgrade) { if (!db->performing_self_upgrade) {
if (errors) if (errors)
snprintf(buf, sizeof(buf), "%d errors;", errors); snprintf(buf, sizeof(buf), "%d error%s;", errors,
errors > 1 ? "s" : "");
else else
strcpy(buf, "OK:"); strcpy(buf, "OK:");
if (apk_verbosity > 1) { if (apk_verbosity > 1) {