Correct error messages
This commit is contained in:
parent
bcec1e617a
commit
364ef51484
@ -229,7 +229,7 @@ prsd_headline(PG_FUNCTION_ARGS)
|
|||||||
if (min_words >= max_words)
|
if (min_words >= max_words)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||||
errmsg("MinWords must be less than MaxWords")));
|
errmsg("MinWords should be less than MaxWords")));
|
||||||
if (min_words <= 0)
|
if (min_words <= 0)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||||
@ -237,7 +237,7 @@ prsd_headline(PG_FUNCTION_ARGS)
|
|||||||
if (shortword < 0)
|
if (shortword < 0)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||||
errmsg("ShortWord hould be = 0")));
|
errmsg("ShortWord should be >= 0")));
|
||||||
}
|
}
|
||||||
|
|
||||||
while (hlCover(prs, query, &p, &q))
|
while (hlCover(prs, query, &p, &q))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user