8000 Fix redundancy in error messages · postgres/postgres@16a3415 · GitHub
[go: up one dir, main page]

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
< 99B9 td data-grid-cell-id="diff-6cf510eb311380d85e53658df1d3364d94e5bb8e8f545680d07e2510bcd1c6f5-215-215-0" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionNum-bgColor, var(--diffBlob-addition-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">
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)
0