Skip to content
Snippets Groups Projects
Commit e155ddd9 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Adjust error message

Makes it look more similar to other ones, and avoids the need for
pluralization.
parent 94684749
No related branches found
No related tags found
No related merge requests found
...@@ -83,11 +83,11 @@ get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p) ...@@ -83,11 +83,11 @@ get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p)
else else
#ifndef FRONTEND #ifndef FRONTEND
ereport(ERROR, 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)))); ControlFilePath, r, (int) sizeof(ControlFileData))));
#else #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)); progname, ControlFilePath, r, (int) sizeof(ControlFileData));
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment