Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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

+1-1
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)