Skip to content

Commit e5d11b9

Browse files
committed
Adjust error message
Makes it look more similar to other ones, and avoids the need for pluralization.
1 parent 5b0c7e2 commit e5d11b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/controldata_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p)
8383
else
8484
#ifndef FRONTEND
8585
ereport(ERROR,
86-
(errmsg("could not read file \"%s\": read %d bytes, expected %d",
86+
(errmsg("could not read file \"%s\": read %d of %d",
8787
ControlFilePath, r, (int) sizeof(ControlFileData))));
8888
#else
8989
{
90-
fprintf(stderr, _("%s: could not read file \"%s\": read %d bytes, expected %d\n"),
90+
fprintf(stderr, _("%s: could not read file \"%s\": read %d of %d\n"),
9191
progname, ControlFilePath, r, (int) sizeof(ControlFileData));
9292
exit(EXIT_FAILURE);
9393
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy