mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04:00
BUG/MINOR: http-rules: mention "deny_status" for "deny" in the error message
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.
This commit is contained in:
parent
45c4437b4a
commit
5abdc760c9
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue