From 9effb63e0dd12b0704cd8e11106fe08ff5c9d685 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 17 May 2018 23:05:27 -0400 Subject: Message wording and pluralization improvements --- src/backend/access/transam/xlog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/backend/access/transam') diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index c633e111281..04bfac74858 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -4652,8 +4652,10 @@ ReadControlFile(void) if (!IsValidWalSegSize(wal_segment_size)) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("WAL segment size must be a power of two between 1MB and 1GB, but the control file specifies %d bytes", - wal_segment_size))); + errmsg_plural("WAL segment size must be a power of two between 1 MB and 1 GB, but the control file specifies %d byte", + "WAL segment size must be a power of two between 1 MB and 1 GB, but the control file specifies %d bytes", + wal_segment_size, + wal_segment_size))); snprintf(wal_segsz_str, sizeof(wal_segsz_str), "%d", wal_segment_size); SetConfigOption("wal_segment_size", wal_segsz_str, PGC_INTERNAL, -- cgit v1.2.3