postgres.git / summary / log / commit / refs
commit e155ddd9180ca059c6049b87c62fb243fefdeebe
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Mon Jun 11 21:19:11 2018 +0000
Adjust error message
Makes it look more similar to other ones, and avoids the need for
pluralization.
src/common/controldata_utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/controldata_utils.c b/src/common/controldata_utils.c
index 0aabb0d8643..f0070513f6b 100644
--- a/src/common/controldata_utils.c
+++ b/src/common/controldata_utils.c
@@ -83,11 +83,11 @@ get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p)
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);
}
[parent: 9468474902fa]