From: Robert Haas Date: Wed, 28 Mar 2012 12:43:35 +0000 (-0400) Subject: pg_basebackup: Error message improvements. X-Git-Tag: REL9_2_BETA1~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81f6bbe8ade8c90f23f9286ca9ca726d3e0e310f;p=postgresql pg_basebackup: Error message improvements. Fujii Masao --- diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 4cb430b7e8..ac7a83481d 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -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)