From: Peter Eisentraut Date: Mon, 11 Jun 2018 21:19:11 +0000 (-0400) Subject: Adjust error message X-Git-Tag: REL9_6_10~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ba761929caa92167e8b6327cc1c21b6cac5e7cb;p=postgresql Adjust error message Makes it look more similar to other ones, and avoids the need for pluralization. --- diff --git a/src/common/controldata_utils.c b/src/common/controldata_utils.c index 598df059e7..b76f4567d1 100644 --- a/src/common/controldata_utils.c +++ b/src/common/controldata_utils.c @@ -78,11 +78,11 @@ get_controlfile(char *DataDir, const char *progname) 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); }