summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTom Lane2003-07-28 00:09:16 +0000
committerTom Lane2003-07-28 00:09:16 +0000
commit81b5c8a1364e7d287fb0aaac848f7f84e64b86d3 (patch)
tree6ce59b7bf5b0cd674a2b0e906adecdc98a231ddf /contrib
parentb556e8200e55261cf41de7ce8be4b38b0a062c2b (diff)
A visit from the message-style police ...
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tsearch2/tsvector.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/tsearch2/tsvector.c b/contrib/tsearch2/tsvector.c
index 8ddce5c921..7c258f1305 100644
--- a/contrib/tsearch2/tsvector.c
+++ b/contrib/tsearch2/tsvector.c
@@ -762,7 +762,8 @@ tsearch2(PG_FUNCTION_ARGS)
if (numidxattr == SPI_ERROR_NOATTRIBUTE)
ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_COLUMN),
- errmsg("cannot find tsvector_field")));
+ errmsg("tsvector column \"%s\" does not exist",
+ trigger->tgargs[0])));
prs.lenwords = 32;
prs.curwords = 0;
@@ -785,7 +786,7 @@ tsearch2(PG_FUNCTION_ARGS)
if ( funcoid==InvalidOid )
ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_COLUMN),
- errmsg("cannot find function or field \"%s\"",
+ errmsg("could not find function or field \"%s\"",
trigger->tgargs[i])));
continue;