]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: http-rules: mention "deny_status" for "deny" in the error message
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Jun 2019 14:01:56 +0000 (16:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Jun 2019 14:37:13 +0000 (16:37 +0200)
The error message indicating an unknown keyword on an http-request rule
doesn't mention the "deny_status" option which comes with the "deny" rule,
this is particularly confusing.

This can be backported to all versions supporting this option.

src/http_rules.c

index ab01f264c1b2166ca71f3116cf8244e24868e419..508920020db95e17d09cda013773a1b2930eb5ae 100644 (file)
@@ -556,7 +556,8 @@ struct act_rule *parse_http_req_cond(const char **args, const char *file, int li
                rule->cond = cond;
        }
        else if (*args[cur_arg]) {
-               ha_alert("parsing [%s:%d]: 'http-request %s' expects 'realm' for 'auth' or"
+               ha_alert("parsing [%s:%d]: 'http-request %s' expects 'realm' for 'auth',"
+                        " 'deny_status' for 'deny', or"
                         " either 'if' or 'unless' followed by a condition but found '%s'.\n",
                         file, linenum, args[0], args[cur_arg]);
                goto out_err;