Skip to content

Commit c8d4515

Browse files
committed
Message improvements
1 parent cc24fb4 commit c8d4515

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
574574
if (symlink(&copybuf[157], fn) != 0)
575575
{
576576
fprintf(stderr,
577-
_("%s: could not create symbolic link from %s to %s: %s\n"),
577+
_("%s: could not create symbolic link from \"%s\" to \"%s\": %s\n"),
578578
progname, fn, &copybuf[157], strerror(errno));
579579
disconnect_and_exit(1);
580580
}
@@ -659,7 +659,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
659659

660660
if (file != NULL)
661661
{
662-
fprintf(stderr, _("%s: last file was never finished\n"), progname);
662+
fprintf(stderr, _("%s: COPY stream ended before last file was finished\n"), progname);
663663
disconnect_and_exit(1);
664664
}
665665

@@ -780,7 +780,7 @@ BaseBackup(void)
780780

781781
if (PQsendQuery(conn, current_path) == 0)
782782
{
783-
fprintf(stderr, _("%s: could not start base backup: %s"),
783+
fprintf(stderr, _("%s: could not send base backup command: %s"),
784784
progname, PQerrorMessage(conn));
785785
disconnect_and_exit(1);
786786
}
@@ -876,7 +876,7 @@ BaseBackup(void)
876876
res = PQgetResult(conn);
877877
if (PQresultStatus(res) != PGRES_TUPLES_OK)
878878
{
879-
fprintf(stderr, _("%s: could not get end xlog position from server\n"),
879+
fprintf(stderr, _("%s: could not get WAL end position from server\n"),
880880
progname);
881881
disconnect_and_exit(1);
882882
}

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