]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
bug #737. Display a more apt error message when wrong argument's supplied to
authorAnoop Saldanha <anoopsaldanha@gmail.com>
Sat, 2 Feb 2013 14:03:19 +0000 (19:33 +0530)
committerVictor Julien <victor@inliniac.net>
Fri, 8 Feb 2013 11:02:19 +0000 (12:02 +0100)
reference keyword.

src/detect-reference.c

index 174b03c7f906103f81547a2cb4b163d336453782..ee515a38a895d55cb2baa79fac8f971d5f8f9faf 100644 (file)
@@ -124,8 +124,8 @@ static DetectReference *DetectReferenceParse(char *rawstr, DetectEngineCtx *de_c
     ret = pcre_exec(parse_regex, parse_regex_study, rawstr, strlen(rawstr),
                     0, 0, ov, MAX_SUBSTRINGS);
     if (ret < 2) {
-        SCLogError(SC_ERR_PCRE_MATCH, "pcre_exec parse error, "
-                   "ret %" PRId32 ", string %s", ret, rawstr);
+        SCLogError(SC_ERR_INVALID_SIGNATURE, "Unable to parse \"reference\" "
+                   "keyword argument - \"%s\".   Invalid argument.", rawstr);
         goto error;
     }