Commit e5d11b91 authored by Peter Eisentraut's avatar Peter Eisentraut

Adjust error message

Makes it look more similar to other ones, and avoids the need for
pluralization.
parent 5b0c7e2f
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment