]> granicus.if.org Git - postgresql/commitdiff
Correct error messages
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 13 Aug 2003 14:41:59 +0000 (14:41 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 13 Aug 2003 14:41:59 +0000 (14:41 +0000)
contrib/tsearch2/wparser_def.c

index 8937bbc49fed973e00f07ffdf3115d5c61c6bd16..f0f4cde9bbc132a5e65c103239fc168b7d454fd1 100644 (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))