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 /src/pl/plpython/plpython.c | |
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 'src/pl/plpython/plpython.c')
-rw-r--r-- | src/pl/plpython/plpython.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index cea843f343a..9c834584a90 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -29,7 +29,7 @@ * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.73 2006/02/28 20:56:14 neilc Exp $ + * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.74 2006/03/01 06:30:32 neilc Exp $ * ********************************************************************* */ @@ -404,7 +404,7 @@ PLy_trigger_handler(FunctionCallInfo fcinfo, PLyProcedure * proc) ereport(ERROR, (errcode(ERRCODE_DATA_EXCEPTION), errmsg("unexpected return value from trigger procedure"), - errdetail("expected None or a String"))); + errdetail("Expected None or a String."))); srv = PyString_AsString(plrv); if (pg_strcasecmp(srv, "SKIP") == 0) @@ -428,7 +428,7 @@ PLy_trigger_handler(FunctionCallInfo fcinfo, PLyProcedure * proc) ereport(ERROR, (errcode(ERRCODE_DATA_EXCEPTION), errmsg("unexpected return value from trigger procedure"), - errdetail("expected None, \"OK\", \"SKIP\", or \"MODIFY\""))); + errdetail("Expected None, \"OK\", \"SKIP\", or \"MODIFY\"."))); } } } @@ -770,7 +770,7 @@ PLy_function_handler(FunctionCallInfo fcinfo, PLyProcedure * proc) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), errmsg("invalid return value from plpython function"), - errdetail("Functions returning type \"void\" must return \"None\"."))); + errdetail("Functions returning type \"void\" must return None."))); fcinfo->isnull = false; rv = (Datum) 0; |