Commit 81f6bbe8 authored by Robert Haas's avatar Robert Haas

pg_basebackup: Error message improvements.

Fujii Masao
parent 9c272da8
...@@ -914,7 +914,7 @@ BaseBackup(void) ...@@ -914,7 +914,7 @@ BaseBackup(void)
res = PQexec(conn, "IDENTIFY_SYSTEM"); res = PQexec(conn, "IDENTIFY_SYSTEM");
if (PQresultStatus(res) != PGRES_TUPLES_OK) if (PQresultStatus(res) != PGRES_TUPLES_OK)
{ {
fprintf(stderr, _("%s: could not identify system: %s\n"), fprintf(stderr, _("%s: could not identify system: %s"),
progname, PQerrorMessage(conn)); progname, PQerrorMessage(conn));
disconnect_and_exit(1); disconnect_and_exit(1);
} }
...@@ -1049,8 +1049,8 @@ BaseBackup(void) ...@@ -1049,8 +1049,8 @@ BaseBackup(void)
res = PQgetResult(conn); res = PQgetResult(conn);
if (PQresultStatus(res) != PGRES_TUPLES_OK) if (PQresultStatus(res) != PGRES_TUPLES_OK)
{ {
fprintf(stderr, _("%s: could not get WAL end position from server\n"), fprintf(stderr, _("%s: could not get WAL end position from server: %s"),
progname); progname, PQerrorMessage(conn));
disconnect_and_exit(1); disconnect_and_exit(1);
} }
if (PQntuples(res) != 1) if (PQntuples(res) != 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment