1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Adjust pg_upgrade FATAL error messages to have consistent newlines.

Also adjust some error message capitalization for consistency.
This commit is contained in:
Bruce Momjian
2011-05-06 21:47:12 -04:00
parent 3ef5b2df97
commit 5c5f83507c
9 changed files with 20 additions and 21 deletions

View File

@ -180,10 +180,10 @@ parseCommandLine(int argc, char *argv[])
*/
/* truncate */
if ((log_opts.fd = fopen(log_opts.filename, "w")) == NULL)
pg_log(PG_FATAL, "Cannot write to log file %s\n", log_opts.filename);
pg_log(PG_FATAL, "cannot write to log file %s\n", log_opts.filename);
fclose(log_opts.fd);
if ((log_opts.fd = fopen(log_opts.filename, "a")) == NULL)
pg_log(PG_FATAL, "Cannot write to log file %s\n", log_opts.filename);
pg_log(PG_FATAL, "cannot write to log file %s\n", log_opts.filename);
}
else
log_opts.filename = strdup(DEVNULL);
@ -193,7 +193,7 @@ parseCommandLine(int argc, char *argv[])
{
log_opts.debug_fd = fopen(DEVTTY, "w");
if (!log_opts.debug_fd)
pg_log(PG_FATAL, "Cannot write to terminal\n");
pg_log(PG_FATAL, "cannot write to terminal\n");
}
/* Get values from env if not already set */