From e6e90a646320e97ebb7f7e8363bf68e7aaf1aaea Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 23 Aug 2017 09:02:23 +0300 Subject: commit: proper singular/plural for 'error(s)' in commit message based on github pull request #5 --- src/commit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/commit.c') diff --git a/src/commit.c b/src/commit.c index fa8267d..9efae1f 100644 --- a/src/commit.c +++ b/src/commit.c @@ -350,7 +350,8 @@ all_done: if (!db->performing_self_upgrade) { if (errors) - snprintf(buf, sizeof(buf), "%d errors;", errors); + snprintf(buf, sizeof(buf), "%d error%s;", errors, + errors > 1 ? "s" : ""); else strcpy(buf, "OK:"); if (apk_verbosity > 1) { -- cgit v1.2.3-70-g09d2