Skip to content

Commit 5ba7619

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

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
@@ -78,11 +78,11 @@ get_controlfile(char *DataDir, const char *progname)
7878
else
7979
#ifndef FRONTEND
8080
ereport(ERROR,
81-
(errmsg("could not read file \"%s\": read %d bytes, expected %d",
81+
(errmsg("could not read file \"%s\": read %d of %d",
8282
ControlFilePath, r, (int) sizeof(ControlFileData))));
8383
#else
8484
{
85-
fprintf(stderr, _("%s: could not read file \"%s\": read %d bytes, expected %d\n"),
85+
fprintf(stderr, _("%s: could not read file \"%s\": read %d of %d\n"),
8686
progname, ControlFilePath, r, (int) sizeof(ControlFileData));
8787
exit(EXIT_FAILURE);
8888
}

0 commit comments

Comments
 (0)