diff options
author | Neil Conway <neilc@samurai.com> | 2006-03-01 06:30:32 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2006-03-01 06:30:32 +0000 |
commit | 8e5a10d46c38976e40504456a5978caa53b77b3c (patch) | |
tree | b94a9b7673f6c919ebacc3546f72032b8eb05657 /doc/src | |
parent | 87fa10a42613ee1ca9cc4bb22eb163f8e179b3f8 (diff) | |
download | postgresql-8e5a10d46c38976e40504456a5978caa53b77b3c.tar.gz postgresql-8e5a10d46c38976e40504456a5978caa53b77b3c.zip |
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).
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/plperl.sgml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/plperl.sgml b/doc/src/sgml/plperl.sgml index 46d180bdc70..0bde2450737 100644 --- a/doc/src/sgml/plperl.sgml +++ b/doc/src/sgml/plperl.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.49 2005/11/04 23:14:00 petere Exp $ +$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.50 2006/03/01 06:30:32 neilc Exp $ --> <chapter id="plperl"> @@ -399,7 +399,7 @@ CREATE OR REPLACE FUNCTION lotsa_md5 (INTEGER) RETURNS SETOF foo_type AS $$ my $t = localtime; elog(NOTICE, "opening file $file at $t" ); open my $fh, '<', $file # ooh, it's a file access! - or elog(ERROR, "Can't open $file for reading: $!"); + or elog(ERROR, "can't open $file for reading: $!"); my @words = <$fh>; close $fh; $t = localtime; @@ -556,9 +556,9 @@ $$ LANGUAGE plperl; CREATE FUNCTION badfunc() RETURNS integer AS $$ my $tmpfile = "/tmp/badfile"; open my $fh, '>', $tmpfile - or elog(ERROR, qq{Could not open the file "$tmpfile": $!}); + or elog(ERROR, qq{could not open the file "$tmpfile": $!}); print $fh "Testing writing to a file\n"; - close $fh or elog(ERROR, qq{Could not close the file "$tmpfile": $!}); + close $fh or elog(ERROR, qq{could not close the file "$tmpfile": $!}); return 1; $$ LANGUAGE plperl; </programlisting> |