Correct error messages

This commit is contained in:
Teodor Sigaev 2003-08-13 14:41:59 +00:00
parent bcec1e617a
commit 364ef51484
1 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ prsd_headline(PG_FUNCTION_ARGS)
if (min_words >= max_words)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("MinWords must be less than MaxWords")));
errmsg("MinWords should be less than MaxWords")));
if (min_words <= 0)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
@ -237,7 +237,7 @@ prsd_headline(PG_FUNCTION_ARGS)
if (shortword < 0)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("ShortWord hould be = 0")));
errmsg("ShortWord should be >= 0")));
}
while (hlCover(prs, query, &p, &q))