Skip to content

Commit 16a3415

Browse files
committed
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.
1 parent 95b44bb commit 16a3415

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/pg_combinebackup/pg_combinebackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ main(int argc, char *argv[])
212212

213213
if (optind >= argc)
214214
{
215-
pg_log_error("%s: no input directories specified", progname);
215+
pg_log_error("no input directories specified");
216216
pg_log_error_hint("Try \"%s --help\" for more information.", progname);
217217
exit(1);
218218
}

src/bin/pg_walsummary/pg_walsummary.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ main(int argc, char *argv[])
9191

9292
if (optind >= argc)
9393
{
94-
pg_log_error("%s: no input files specified", progname);
94+
pg_log_error("no input files specified");
9595
pg_log_error_hint("Try \"%s --help\" for more information.", progname);
9696
exit(1);
9797
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy