From: Peter Eisentraut Date: Thu, 20 Jun 2024 09:17:21 +0000 (+0200) Subject: Fix redundancy in error messages X-Git-Tag: REL_17_BETA2~22 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=16a3415440ecf2f5cd02848fc05cbfe040ce14c2;p=postgresql.git Fix redundancy in error messages pg_log_error() already prints the program name, so we don't need to print it again inside the message. --- diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c index f4a1f499536..20bb1ab9195 100644 --- a/src/bin/pg_combinebackup/pg_combinebackup.c +++ b/src/bin/pg_combinebackup/pg_combinebackup.c @@ -212,7 +212,7 @@ main(int argc, char *argv[]) if (optind >= argc) { - pg_log_error("%s: no input directories specified", progname); + pg_log_error("no input directories specified"); pg_log_error_hint("Try \"%s --help\" for more information.", progname); exit(1); } diff --git a/src/bin/pg_walsummary/pg_walsummary.c b/src/bin/pg_walsummary/pg_walsummary.c index ffe183f0eee..93f6e6d408a 100644 --- a/src/bin/pg_walsummary/pg_walsummary.c +++ b/src/bin/pg_walsummary/pg_walsummary.c @@ -91,7 +91,7 @@ main(int argc, char *argv[]) if (optind >= argc) { - pg_log_error("%s: no input files specified", progname); + pg_log_error("no input files specified"); pg_log_error_hint("Try \"%s --help\" for more information.", progname); exit(1); }