Skip to content

Commit 55c0da3

Browse files
committed
Message string improvements
1 parent 0779f2b commit 55c0da3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/bin/pg_basebackup/pg_receivexlog.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,17 +479,19 @@ main(int argc, char **argv)
479479
exit(1);
480480
}
481481

482-
if (replication_slot == NULL && (do_drop_slot || do_create_slot))
482+
if (do_drop_slot && do_create_slot)
483483
{
484-
fprintf(stderr, _("%s: --create-slot and --drop-slot need a slot to be specified using --slot\n"), progname);
484+
fprintf(stderr, _("%s: cannot use --create-slot together with --drop-slot\n"), progname);
485485
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
486486
progname);
487487
exit(1);
488488
}
489489

490-
if (do_drop_slot && do_create_slot)
490+
if (replication_slot == NULL && (do_drop_slot || do_create_slot))
491491
{
492-
fprintf(stderr, _("%s: cannot use --create-slot together with --drop-slot\n"), progname);
492+
/* translator: second %s is an option name */
493+
fprintf(stderr, _("%s: %s needs a slot to be specified using --slot\n"), progname,
494+
do_drop_slot ? "--drop-slot" : "--create-slot");
493495
fprintf(stderr, _("Try \"%s --help\" for more information.\n"),
494496
progname);
495497
exit(1);

src/bin/pg_basebackup/pg_recvlogical.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ main(int argc, char **argv)
852852
if (db_name == NULL)
853853
{
854854
fprintf(stderr,
855-
_("%s: failed to establish database specific replication connection\n"),
855+
_("%s: could not establish database-specific replication connection\n"),
856856
progname);
857857
disconnect_and_exit(1);
858858
}

src/interfaces/libpq/fe-secure-openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ verify_peer_name_matches_certificate(PGconn *conn)
694694
else
695695
{
696696
printfPQExpBuffer(&conn->errorMessage,
697-
libpq_gettext("could not get server's hostname from server certificate\n"));
697+
libpq_gettext("could not get server's host name from server certificate\n"));
698698
}
699699
}
700700

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