summaryrefslogtreecommitdiff
path: root/src/bin/initdb/initdb.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-05-08 13:33:00 +0200
committerPeter Eisentraut <peter@eisentraut.org>2020-05-08 13:34:53 +0200
commit7666ef313dcc22c8716ee74dfefab8e5ea628678 (patch)
tree533ad63e0d01dcc3e2200a96b6cb0ab39a0d8fab /src/bin/initdb/initdb.c
parent086ffddf3656fb3d24d9a73ce36cb1102e42cc90 (diff)
Unify find_other_exec() error messages
There were a few different ways to line-wrap the error messages. Make them all the same, and use placeholders for the actual program names, to save translation work.
Diffstat (limited to 'src/bin/initdb/initdb.c')
-rw-r--r--src/bin/initdb/initdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index a6577486ce9..a66dd078a79 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2431,15 +2431,15 @@ setup_bin_paths(const char *argv0)
strlcpy(full_path, progname, sizeof(full_path));
if (ret == -1)
- pg_log_error("The program \"postgres\" is needed by %s but was not found in the\n"
+ pg_log_error("The program \"%s\" is needed by %s but was not found in the\n"
"same directory as \"%s\".\n"
"Check your installation.",
- progname, full_path);
+ "postgres", progname, full_path);
else
- pg_log_error("The program \"postgres\" was found by \"%s\"\n"
+ pg_log_error("The program \"%s\" was found by \"%s\"\n"
"but was not the same version as %s.\n"
"Check your installation.",
- full_path, progname);
+ "postgres", full_path, progname);
exit(1);
}