diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2013-03-10 16:53:04 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2013-03-10 16:56:06 -0400 |
commit | 74e629cb0987fd3505173c4e117108e079e7e930 (patch) | |
tree | 9425d11eb0c0989a1cc465d7de16d2d75c7eb556 /src | |
parent | f7951eef89be78c50ea2241f593d76dfefe176c9 (diff) | |
download | postgresql-74e629cb0987fd3505173c4e117108e079e7e930.tar.gz postgresql-74e629cb0987fd3505173c4e117108e079e7e930.zip |
pg_basebackup: Add missing newlines to several error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 8 | ||||
-rw-r--r-- | src/bin/pg_basebackup/receivelog.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 2de03acabd6..eacb5922a2a 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -1134,14 +1134,14 @@ GenerateRecoveryConf(PGconn *conn) recoveryconfcontents = createPQExpBuffer(); if (!recoveryconfcontents) { - fprintf(stderr, _("%s: out of memory"), progname); + fprintf(stderr, _("%s: out of memory\n"), progname); disconnect_and_exit(1); } connOptions = PQconninfo(conn); if (connOptions == NULL) { - fprintf(stderr, _("%s: out of memory"), progname); + fprintf(stderr, _("%s: out of memory\n"), progname); disconnect_and_exit(1); } @@ -1179,7 +1179,7 @@ GenerateRecoveryConf(PGconn *conn) appendPQExpBufferStr(recoveryconfcontents, "'\n"); if (PQExpBufferBroken(recoveryconfcontents)) { - fprintf(stderr, _("%s: out of memory"), progname); + fprintf(stderr, _("%s: out of memory\n"), progname); disconnect_and_exit(1); } @@ -1202,7 +1202,7 @@ WriteRecoveryConf(void) cf = fopen(filename, "w"); if (cf == NULL) { - fprintf(stderr, _("%s: could not create file %s: %s"), progname, filename, strerror(errno)); + fprintf(stderr, _("%s: could not create file \"%s\": %s\n"), progname, filename, strerror(errno)); disconnect_and_exit(1); } diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index 03e275cb5b6..1f7611f4440 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -313,7 +313,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co fd = open(tmppath, O_WRONLY | O_CREAT | PG_BINARY, S_IRUSR | S_IWUSR); if (fd < 0) { - fprintf(stderr, _("%s: could not create timeline history file \"%s\": %s"), + fprintf(stderr, _("%s: could not create timeline history file \"%s\": %s\n"), progname, tmppath, strerror(errno)); return false; } @@ -329,7 +329,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co unlink(tmppath); errno = save_errno; - fprintf(stderr, _("%s: could not write timeline history file \"%s\": %s"), + fprintf(stderr, _("%s: could not write timeline history file \"%s\": %s\n"), progname, tmppath, strerror(errno)); return false; } |