From: Heikki Linnakangas Date: Fri, 16 Jan 2015 14:30:43 +0000 (+0200) Subject: Don't end error messages with a period. X-Git-Url: http://git.postgresql.org/gitweb/static/close/reject?a=commitdiff_plain;h=0cff9d04e94ad7d078c9fb5884a1109b6ea8c1fc;p=users%2Fheikki%2Fpostgres.git Don't end error messages with a period. --- diff --git a/src/bin/pg_rewind/filemap.c b/src/bin/pg_rewind/filemap.c index 5324f27a42..10f2499963 100644 --- a/src/bin/pg_rewind/filemap.c +++ b/src/bin/pg_rewind/filemap.c @@ -117,7 +117,7 @@ process_remote_file(const char *path, file_type_t type, size_t newsize, if (exists && !S_ISDIR(statbuf.st_mode)) { /* it's a directory in target, but not in source. Strange.. */ - pg_fatal("\"%s\" is not a directory.\n", localpath); + pg_fatal("\"%s\" is not a directory\n", localpath); } if (!exists) @@ -137,7 +137,7 @@ process_remote_file(const char *path, file_type_t type, size_t newsize, ) { /* it's a symbolic link in target, but not in source. Strange.. */ - pg_fatal("\"%s\" is not a symbolic link.\n", localpath); + pg_fatal("\"%s\" is not a symbolic link\n", localpath); } if (!exists) @@ -149,7 +149,7 @@ process_remote_file(const char *path, file_type_t type, size_t newsize, case FILE_TYPE_REGULAR: if (exists && !S_ISREG(statbuf.st_mode)) - pg_fatal("\"%s\" is not a regular file.\n", localpath); + pg_fatal("\"%s\" is not a regular file\n", localpath); if (!exists || !isRelDataFile(path)) { diff --git a/src/bin/pg_rewind/pg_rewind.c b/src/bin/pg_rewind/pg_rewind.c index 350747e849..ba8eab3234 100644 --- a/src/bin/pg_rewind/pg_rewind.c +++ b/src/bin/pg_rewind/pg_rewind.c @@ -196,7 +196,7 @@ main(int argc, char **argv) * to do. */ if (ControlFile_target.checkPointCopy.ThisTimeLineID == ControlFile_source.checkPointCopy.ThisTimeLineID) - pg_fatal("source and target cluster are on the same timeline.\n"); + pg_fatal("source and target cluster are on the same timeline\n"); findCommonAncestorTimeline(&divergerec, &lastcommontli); printf("The servers diverged at WAL position %X/%X on timeline %u.\n",