mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
pg_basebackup: Add missing newlines to several error messages
This commit is contained in:
parent
f7951eef89
commit
74e629cb09
@ -1134,14 +1134,14 @@ GenerateRecoveryConf(PGconn *conn)
|
|||||||
recoveryconfcontents = createPQExpBuffer();
|
recoveryconfcontents = createPQExpBuffer();
|
||||||
if (!recoveryconfcontents)
|
if (!recoveryconfcontents)
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("%s: out of memory"), progname);
|
fprintf(stderr, _("%s: out of memory\n"), progname);
|
||||||
disconnect_and_exit(1);
|
disconnect_and_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
connOptions = PQconninfo(conn);
|
connOptions = PQconninfo(conn);
|
||||||
if (connOptions == NULL)
|
if (connOptions == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("%s: out of memory"), progname);
|
fprintf(stderr, _("%s: out of memory\n"), progname);
|
||||||
disconnect_and_exit(1);
|
disconnect_and_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1179,7 +1179,7 @@ GenerateRecoveryConf(PGconn *conn)
|
|||||||
appendPQExpBufferStr(recoveryconfcontents, "'\n");
|
appendPQExpBufferStr(recoveryconfcontents, "'\n");
|
||||||
if (PQExpBufferBroken(recoveryconfcontents))
|
if (PQExpBufferBroken(recoveryconfcontents))
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("%s: out of memory"), progname);
|
fprintf(stderr, _("%s: out of memory\n"), progname);
|
||||||
disconnect_and_exit(1);
|
disconnect_and_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1202,7 +1202,7 @@ WriteRecoveryConf(void)
|
|||||||
cf = fopen(filename, "w");
|
cf = fopen(filename, "w");
|
||||||
if (cf == NULL)
|
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);
|
disconnect_and_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
fd = open(tmppath, O_WRONLY | O_CREAT | PG_BINARY, S_IRUSR | S_IWUSR);
|
||||||
if (fd < 0)
|
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));
|
progname, tmppath, strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -329,7 +329,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co
|
|||||||
unlink(tmppath);
|
unlink(tmppath);
|
||||||
errno = save_errno;
|
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));
|
progname, tmppath, strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user