mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
MINOR: sample: add ARGC_OPT
Add ARGC_OPT enum to provide more context for upcoming sample parse errors involving proxy "option" config directives.
This commit is contained in:
parent
38ebffaf10
commit
5f7f5fe76a
@ -83,6 +83,7 @@ enum {
|
||||
ARGC_USRV, /* use-server message */
|
||||
ARGC_HERR, /* http-error */
|
||||
ARGC_OT, /* opentracing scope args */
|
||||
ARGC_OPT, /* option directive */
|
||||
ARGC_TCO, /* tcp-request connection expression */
|
||||
ARGC_TSE, /* tcp-request session expression */
|
||||
ARGC_TRQ, /* tcp-request content expression */
|
||||
|
@ -1310,6 +1310,7 @@ int smp_resolve_args(struct proxy *p, char **err)
|
||||
case ARGC_USRV: where = "in use-server or balance expression in"; break;
|
||||
case ARGC_HERR: where = "in http-error directive in"; break;
|
||||
case ARGC_OT: where = "in ot-scope directive in"; break;
|
||||
case ARGC_OPT: where = "in option directive in"; break;
|
||||
case ARGC_TCO: where = "in tcp-request connection expression in"; break;
|
||||
case ARGC_TSE: where = "in tcp-request session expression in"; break;
|
||||
case ARGC_TRQ: where = "in tcp-request content expression in"; break;
|
||||
|
Loading…
Reference in New Issue
Block a user