Update parser.go

This commit is contained in:
wwqgtxx 2025-02-13 17:24:50 +08:00 committed by GitHub
parent f6b8a39e3f
commit cec0f3cebe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,9 +82,9 @@ func ParseRule(tp, payload, target string, params []string, subRules map[string]
parsed = RC.NewMatch(target)
parseErr = nil
case "":
parseErr = fmt.Errorf("(%s) missing subsequent parameters", payload)
parseErr = fmt.Errorf("missing subsequent parameters: %s", payload)
default:
parseErr = fmt.Errorf("unsupported rule type %s", tp)
parseErr = fmt.Errorf("unsupported rule type: %s", tp)
}
if parseErr != nil {