From: Anoop Saldanha Date: Sat, 2 Feb 2013 14:03:19 +0000 (+0530) Subject: bug #737. Display a more apt error message when wrong argument's supplied to X-Git-Tag: suricata-1.4.1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe9394d071b6c6b24cf8a3b05a2f1a1e6d800a0;p=thirdparty%2Fsuricata.git bug #737. Display a more apt error message when wrong argument's supplied to reference keyword. --- diff --git a/src/detect-reference.c b/src/detect-reference.c index 174b03c7f9..ee515a38a8 100644 --- a/src/detect-reference.c +++ b/src/detect-reference.c @@ -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; }