]> granicus.if.org Git - postgresql/commitdiff
Adjust error message
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 11 Jun 2018 21:19:11 +0000 (17:19 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 6 Aug 2018 08:54:19 +0000 (10:54 +0200)
Makes it look more similar to other ones, and avoids the need for
pluralization.

src/common/controldata_utils.c

index 598df059e7d239fef3afa79c3d52dbf5ce8dd94a..b76f4567d19319e59a762d6c29247a23b40d5240 100644 (file)
@@ -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);
                }