aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsvector.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-11-28 21:56:30 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-11-28 21:56:30 +0000
commitbb0e3011f8670cefc7b4ef667d890c9adb7556db (patch)
tree26d5f01629043b8552c669f4fd05bde13919f1ba /src/backend/utils/adt/tsvector.c
parent664782ee74ce5c02a35f22543451f957a84f043c (diff)
downloadpostgresql-bb0e3011f8670cefc7b4ef667d890c9adb7556db.tar.gz
postgresql-bb0e3011f8670cefc7b4ef667d890c9adb7556db.zip
Make a cleanup pass over error reports in tsearch code. Use ereport
for user-facing errors, fix some poor choices of errcode, adhere to message style guide.
Diffstat (limited to 'src/backend/utils/adt/tsvector.c')
-rw-r--r--src/backend/utils/adt/tsvector.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/tsvector.c b/src/backend/utils/adt/tsvector.c
index fb44c1224f8..1d5e14feef7 100644
--- a/src/backend/utils/adt/tsvector.c
+++ b/src/backend/utils/adt/tsvector.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.9 2007/11/16 15:05:59 teodor Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.10 2007/11/28 21:56:30 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -480,13 +480,13 @@ tsvectorrecv(PG_FUNCTION_ARGS)
lex_len = strlen(lexeme);
if (lex_len < 0 || lex_len > MAXSTRLEN)
- elog(ERROR, "invalid tsvector; lexeme too long");
+ elog(ERROR, "invalid tsvector: lexeme too long");
if (datalen > MAXSTRPOS)
- elog(ERROR, "invalid tsvector; maximum total lexeme length exceeded");
+ elog(ERROR, "invalid tsvector: maximum total lexeme length exceeded");
if (npos > MAXNUMPOS)
- elog(ERROR, "unexpected number of positions");
+ elog(ERROR, "unexpected number of tsvector positions");
/*
* Looks valid. Fill the WordEntry struct, and copy lexeme.