mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-22 02:20:56 -04: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
2 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue