Fix redundancy in error messages
authorPeter Eisentraut <[email protected]>
Thu, 20 Jun 2024 09:17:21 +0000 (11:17 +0200)
committerPeter Eisentraut <[email protected]>
Thu, 20 Jun 2024 09:17:21 +0000 (11:17 +0200)
pg_log_error() already prints the program name, so we don't need to
print it again inside the message.

src/bin/pg_combinebackup/pg_combinebackup.c
src/bin/pg_walsummary/pg_walsummary.c

index f4a1f499536db16327ef184a578a5f804d8ca583..20bb1ab919556b44320b2149921ba96dc4a9b062 100644 (file)
@@ -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);
    }
index ffe183f0eeeb53117a53e81cc0fc1980950fdf5b..93f6e6d408a80bc0c59048cf498fe4141cb6a564 100644 (file)
@@ -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);
    }