Commit 364ef514 authored by Teodor Sigaev's avatar Teodor Sigaev

Correct error messages

parent bcec1e61
...@@ -229,7 +229,7 @@ prsd_headline(PG_FUNCTION_ARGS) ...@@ -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) ...@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment