BUG/MINOR: stick-table: report the correct action name in error message

sc-inc-gpc() learned to use arrays in 2.5 with commit 4d7ada8f9 ("MEDIUM:
stick-table: add the new arrays of gpc and gpc_rate"), but the error
message says "sc-set-gpc" instead of "sc-inc-gpc". Let's fix this to
avoid confusion.

This can be backported to 2.5.
This commit is contained in:
Willy Tarreau 2023-01-02 17:35:50 +01:00
parent c389b04bc5
commit 20391519c3

View file

@ -2579,7 +2579,7 @@ static enum act_parse_ret parse_inc_gpc(const char **args, int *arg, struct prox
}
else {
/* default stick table id. */
memprintf(err, "invalid gpc ID '%s'. Expects sc-set-gpc(<GPC ID>,<Track ID>)", args[*arg-1]);
memprintf(err, "invalid gpc ID '%s'. Expects sc-inc-gpc(<GPC ID>,<Track ID>)", args[*arg-1]);
return ACT_RET_PRS_ERR;
}
rule->action = ACT_CUSTOM;