aboutsummaryrefslogtreecommitdiff
path: root/contrib/file_fdw/file_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-03-22 17:33:10 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-03-22 17:33:10 -0400
commitfeb8254518752b2cb4a8964c374dd82d49ef0e0d (patch)
treea8df8e512a106777ec27b23210403091542d33af /contrib/file_fdw/file_fdw.c
parent88ba0ae2aa4aaba8ea0d85c0ff81cc46912d9308 (diff)
downloadpostgresql-feb8254518752b2cb4a8964c374dd82d49ef0e0d.tar.gz
postgresql-feb8254518752b2cb4a8964c374dd82d49ef0e0d.zip
Improve style guideline compliance of assorted error-report messages.
Per the project style guide, details and hints should have leading capitalization and end with a period. On the other hand, errcontext should not be capitalized and should not end with a period. To support well formatted error contexts in dblink, extend dblink_res_error() to take a format+arguments rather than a hardcoded string. Daniel Gustafsson Discussion: https://postgr.es/m/B3C002C8-21A0-4F53-A06E-8CAB29FCF295@yesql.se
Diffstat (limited to 'contrib/file_fdw/file_fdw.c')
-rw-r--r--contrib/file_fdw/file_fdw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c
index dce3be26179..3df6fc741d8 100644
--- a/contrib/file_fdw/file_fdw.c
+++ b/contrib/file_fdw/file_fdw.c
@@ -277,7 +277,7 @@ file_fdw_validator(PG_FUNCTION_ARGS)
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("conflicting or redundant options"),
- errhint("option \"force_not_null\" supplied more than once for a column")));
+ errhint("Option \"force_not_null\" supplied more than once for a column.")));
force_not_null = def;
/* Don't care what the value is, as long as it's a legal boolean */
(void) defGetBoolean(def);
@@ -289,7 +289,7 @@ file_fdw_validator(PG_FUNCTION_ARGS)
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("conflicting or redundant options"),
- errhint("option \"force_null\" supplied more than once for a column")));
+ errhint("Option \"force_null\" supplied more than once for a column.")));
force_null = def;
(void) defGetBoolean(def);
}