Skip to content
Snippets Groups Projects
Commit ee37fb57 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Add guidelines for formatting errcontext strings

parent 7bfc0e5e
No related branches found
No related tags found
No related merge requests found
<!-- $PostgreSQL: pgsql/doc/src/sgml/sources.sgml,v 2.35 2009/10/08 02:39:16 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/sources.sgml,v 2.36 2010/06/28 17:48:26 petere Exp $ -->
<chapter id="source"> <chapter id="source">
<title>PostgreSQL Coding Conventions</title> <title>PostgreSQL Coding Conventions</title>
...@@ -444,6 +444,12 @@ Hint: the addendum ...@@ -444,6 +444,12 @@ Hint: the addendum
inappropriate in other languages). inappropriate in other languages).
</para> </para>
<para>
Error context strings: Do not capitalize the first letter and do
not end the string with a period. Context strings should normally
not be complete sentences.
</para>
<para> <para>
Rationale: Avoiding punctuation makes it easier for client applications to Rationale: Avoiding punctuation makes it easier for client applications to
embed the message into a variety of grammatical contexts. Often, primary embed the message into a variety of grammatical contexts. Often, primary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment