Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+4-4
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)