Adjust error message
authorPeter Eisentraut
Mon, 11 Jun 2018 21:19:11 +0000 (17:19 -0400)
committerPeter Eisentraut
Mon, 6 Aug 2018 08:53:51 +0000 (10:53 +0200)
Makes it look more similar to other ones, and avoids the need for
pluralization.

src/common/controldata_utils.c

index 0aabb0d8643f85e4590b44ca1ffbf820f0800748..f0070513f6bb5c8cd55eff934ef21d2912686acf 100644 (file)
@@ -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);
        }