diff --git a/src/detect-parse.c b/src/detect-parse.c index 5ef1cb7c49..05d38302e5 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -1078,7 +1078,7 @@ static int SigParseBasics(DetectEngineCtx *de_ctx, /* Options. */ if (index == NULL) { - fprintf(stderr, "no rule options.\n"); + SCLogError(SC_ERR_INVALID_RULE_ARGUMENT, "no rule options."); goto error; } while (isspace(*index) || *index == '(') {