Skip to content

Commit 81f6bbe

Browse files
committed
pg_basebackup: Error message improvements.
Fujii Masao
1 parent 9c272da commit 81f6bbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ BaseBackup(void)
914914
res = PQexec(conn, "IDENTIFY_SYSTEM");
915915
if (PQresultStatus(res) != PGRES_TUPLES_OK)
916916
{
917-
fprintf(stderr, _("%s: could not identify system: %s\n"),
917+
fprintf(stderr, _("%s: could not identify system: %s"),
918918
progname, PQerrorMessage(conn));
919919
disconnect_and_exit(1);
920920
}
@@ -1049,8 +1049,8 @@ BaseBackup(void)
10491049
res = PQgetResult(conn);
10501050
if (PQresultStatus(res) != PGRES_TUPLES_OK)
10511051
{
1052-
fprintf(stderr, _("%s: could not get WAL end position from server\n"),
1053-
progname);
1052+
fprintf(stderr, _("%s: could not get WAL end position from server: %s"),
1053+
progname, PQerrorMessage(conn));
10541054
disconnect_and_exit(1);
10551055
}
10561056
if (PQntuples(res) != 1)

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