mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-13 17:29:44 +02:00
Adjust error message
Makes it look more similar to other ones, and avoids the need for pluralization.
This commit is contained in:
parent
637b3be527
commit
5ba761929c
@ -78,11 +78,11 @@ get_controlfile(char *DataDir, const char *progname)
|
|||||||
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user