Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55c0da3

Browse files
committed
Message string improvements
1 parent0779f2b commit55c0da3

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-slotneed a slot to be specified using --slot\n"),progname);
484+
fprintf(stderr,_("%s:cannot use --create-slottogether 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 databasespecific 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'shostname from server certificate\n"));
697+
libpq_gettext("could not get server'shost name from server certificate\n"));
698698
}
699699
}
700700

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp