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);
}
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);
}
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);
}
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;
}
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;
}