mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
This patch makes the error message strings throughout the backend
more compliant with the error message style guide. In particular, errdetail should begin with a capital letter and end with a period, whereas errmsg should not. I also fixed a few related issues in passing, such as fixing the repeated misspelling of "lexeme" in contrib/tsearch2 (per Tom's suggestion).
This commit is contained in:
@ -81,7 +81,7 @@ xslt_process(PG_FUNCTION_ARGS)
|
||||
if (doctree == NULL)
|
||||
{
|
||||
xmlCleanupParser();
|
||||
elog_error(ERROR, "Error parsing XML document", 0);
|
||||
elog_error(ERROR, "error parsing XML document", 0);
|
||||
|
||||
PG_RETURN_NULL();
|
||||
}
|
||||
@ -95,7 +95,7 @@ xslt_process(PG_FUNCTION_ARGS)
|
||||
{
|
||||
xmlFreeDoc(doctree);
|
||||
xmlCleanupParser();
|
||||
elog_error(ERROR, "Error parsing stylesheet as XML document", 0);
|
||||
elog_error(ERROR, "error parsing stylesheet as XML document", 0);
|
||||
PG_RETURN_NULL();
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@ xslt_process(PG_FUNCTION_ARGS)
|
||||
xmlFreeDoc(doctree);
|
||||
xsltCleanupGlobals();
|
||||
xmlCleanupParser();
|
||||
elog_error(ERROR, "Failed to parse stylesheet", 0);
|
||||
elog_error(ERROR, "failed to parse stylesheet", 0);
|
||||
PG_RETURN_NULL();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user