mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
pg_basebackup: Error message improvements.
Fujii Masao
This commit is contained in:
parent
9c272da8c4
commit
81f6bbe8ad
1 changed files with 3 additions and 3 deletions
|
|
@ -914,7 +914,7 @@ BaseBackup(void)
|
|||
res = PQexec(conn, "IDENTIFY_SYSTEM");
|
||||
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));
|
||||
disconnect_and_exit(1);
|
||||
}
|
||||
|
|
@ -1049,8 +1049,8 @@ BaseBackup(void)
|
|||
res = PQgetResult(conn);
|
||||
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
||||
{
|
||||
fprintf(stderr, _("%s: could not get WAL end position from server\n"),
|
||||
progname);
|
||||
fprintf(stderr, _("%s: could not get WAL end position from server: %s"),
|
||||
progname, PQerrorMessage(conn));
|
||||
disconnect_and_exit(1);
|
||||
}
|
||||
if (PQntuples(res) != 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue