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:
Aurelien DARRAGON 2022-12-28 11:30:51 +01:00 committed by Christopher Faulet
parent 38ebffaf10
commit 5f7f5fe76a
2 changed files with 2 additions and 0 deletions

View File

@ -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 */

View File

@ -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;