Content-Length: 265740 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e5d11b91e42e20ff80effb946cb461c490d491ba

EE Adjust error message · postgrespro/postgres_cluster@e5d11b9 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/e5d11b91e42e20ff80effb946cb461c490d491ba

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy