Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 959ee6d commit 3e6f01fCopy full SHA for 3e6f01f
src/bin/pg_upgrade/server.c
@@ -310,8 +310,13 @@ start_postmaster(ClusterInfo *cluster, bool throw_error)
310
* running.
311
*/
312
if (!pg_ctl_return)
313
- pg_fatal("pg_ctl failed to start the %s server, or connection failed\n",
314
- cluster == &old_cluster ? "source" : "target");
+ {
+ /* keep error strings separate to ease translation */
315
+ if (cluster == &old_cluster)
316
+ pg_fatal("pg_ctl failed to start the source server, or connection failed\n");
317
+ else
318
+ pg_fatal("pg_ctl failed to start the target server, or connection failed\n");
319
+ }
320
321
return true;
322
}
0 commit comments