diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-06-11 17:19:11 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-06-11 17:19:11 -0400 |
commit | e5d11b91e42e20ff80effb946cb461c490d491ba (patch) | |
tree | 3d33f0ec14863c5454a4c6ec45cfc94ecb9e41a8 /src | |
parent | 5b0c7e2f757a2cbdd8e0c478de51bcb5606d3a93 (diff) | |
download | postgresql-e5d11b91e42e20ff80effb946cb461c490d491ba.tar.gz postgresql-e5d11b91e42e20ff80effb946cb461c490d491ba.zip |
Adjust error message
Makes it look more similar to other ones, and avoids the need for
pluralization.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/controldata_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/controldata_utils.c b/src/common/controldata_utils.c index 78a9f0ce62c..e83d60d4383 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); } |