We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f9cd9 commit 4109bb5Copy full SHA for 4109bb5
src/bin/pg_upgrade/server.c
@@ -164,11 +164,11 @@ get_major_server_version(ClusterInfo *cluster)
164
snprintf(ver_filename, sizeof(ver_filename), "%s/PG_VERSION",
165
cluster->pgdata);
166
if ((version_fd = fopen(ver_filename, "r")) == NULL)
167
- pg_fatal("could not open version file: %s\n", ver_filename);
+ pg_fatal("could not open version file \"%s\": %m\n", ver_filename);
168
169
if (fscanf(version_fd, "%63s", cluster->major_version_str) == 0 ||
170
sscanf(cluster->major_version_str, "%d.%d", &v1, &v2) < 1)
171
- pg_fatal("could not parse PG_VERSION file from %s\n", cluster->pgdata);
+ pg_fatal("could not parse PG_VERSION file from \"%s\"\n", cluster->pgdata);
172
173
fclose(version_fd);
174
0 commit comments