diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c
index ac84e6d360e410e79d9b2d0410fcddfed547f56b..0ed61440b09756148afd60c769b9e168a52f3e04 100644
--- a/src/bin/pg_basebackup/streamutil.c
+++ b/src/bin/pg_basebackup/streamutil.c
@@ -182,7 +182,7 @@ GetConnection(void)
 
 	if (PQstatus(tmpconn) != CONNECTION_OK)
 	{
-		fprintf(stderr, _("%s: could not connect to server: %s\n"),
+		fprintf(stderr, _("%s: could not connect to server: %s"),
 				progname, PQerrorMessage(tmpconn));
 		PQfinish(tmpconn);
 		free(values);