aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-06-11 17:19:11 -0400
committerPeter Eisentraut <peter_e@gmx.net>2018-08-06 10:54:19 +0200
commit5ba761929caa92167e8b6327cc1c21b6cac5e7cb (patch)
tree001bef4fc1f9ccd73939af205dd84853cfc433ce
parent637b3be527f2fef8246f60a82781cb9c661891d9 (diff)
downloadpostgresql-5ba761929caa92167e8b6327cc1c21b6cac5e7cb.tar.gz
postgresql-5ba761929caa92167e8b6327cc1c21b6cac5e7cb.zip
Adjust error message
Makes it look more similar to other ones, and avoids the need for pluralization.
-rw-r--r--src/common/controldata_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/controldata_utils.c b/src/common/controldata_utils.c
index 598df059e7d..b76f4567d19 100644
--- a/src/common/controldata_utils.c
+++ b/src/common/controldata_utils.c
@@ -78,11 +78,11 @@ get_controlfile(char *DataDir, const char *progname)
else
#ifndef FRONTEND
ereport(ERROR,
- (errmsg("could not read file \"%s\": read %d bytes, expected %d",
+ (errmsg("could not read file \"%s\": read %d of %d",
ControlFilePath, r, (int) sizeof(ControlFileData))));
#else
{
- fprintf(stderr, _("%s: could not read file \"%s\": read %d bytes, expected %d\n"),
+ fprintf(stderr, _("%s: could not read file \"%s\": read %d of %d\n"),
progname, ControlFilePath, r, (int) sizeof(ControlFileData));
exit(EXIT_FAILURE);
}