Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 74e629c

Browse files
committed
pg_basebackup: Add missing newlines to several error messages
1 parent f7951ee commit 74e629c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,14 +1134,14 @@ GenerateRecoveryConf(PGconn *conn)
11341134
recoveryconfcontents = createPQExpBuffer();
11351135
if (!recoveryconfcontents)
11361136
{
1137-
fprintf(stderr, _("%s: out of memory"), progname);
1137+
fprintf(stderr, _("%s: out of memory\n"), progname);
11381138
disconnect_and_exit(1);
11391139
}
11401140

11411141
connOptions = PQconninfo(conn);
11421142
if (connOptions == NULL)
11431143
{
1144-
fprintf(stderr, _("%s: out of memory"), progname);
1144+
fprintf(stderr, _("%s: out of memory\n"), progname);
11451145
disconnect_and_exit(1);
11461146
}
11471147

@@ -1179,7 +1179,7 @@ GenerateRecoveryConf(PGconn *conn)
11791179
appendPQExpBufferStr(recoveryconfcontents, "'\n");
11801180
if (PQExpBufferBroken(recoveryconfcontents))
11811181
{
1182-
fprintf(stderr, _("%s: out of memory"), progname);
1182+
fprintf(stderr, _("%s: out of memory\n"), progname);
11831183
disconnect_and_exit(1);
11841184
}
11851185

@@ -1202,7 +1202,7 @@ WriteRecoveryConf(void)
12021202
cf = fopen(filename, "w");
12031203
if (cf == NULL)
12041204
{
1205-
fprintf(stderr, _("%s: could not create file %s: %s"), progname, filename, strerror(errno));
1205+
fprintf(stderr, _("%s: could not create file \"%s\": %s\n"), progname, filename, strerror(errno));
12061206
disconnect_and_exit(1);
12071207
}
12081208

src/bin/pg_basebackup/receivelog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co
313313
fd = open(tmppath, O_WRONLY | O_CREAT | PG_BINARY, S_IRUSR | S_IWUSR);
314314
if (fd < 0)
315315
{
316-
fprintf(stderr, _("%s: could not create timeline history file \"%s\": %s"),
316+
fprintf(stderr, _("%s: could not create timeline history file \"%s\": %s\n"),
317317
progname, tmppath, strerror(errno));
318318
return false;
319319
}
@@ -329,7 +329,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co
329329
unlink(tmppath);
330330
errno = save_errno;
331331

332-
fprintf(stderr, _("%s: could not write timeline history file \"%s\": %s"),
332+
fprintf(stderr, _("%s: could not write timeline history file \"%s\": %s\n"),
333333
progname, tmppath, strerror(errno));
334334
return false;
335335
}

0 commit comments

Comments
 (0)