提交 364ef514 编写于 作者: T Teodor Sigaev

Correct error messages

上级 bcec1e61
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册