BUG/MINOR: cli: clarify error message about stats bind-process

In 2.7-dev2, "stats bind-process" was removed by commit 94f763b5e
("MEDIUM: config: remove deprecated "bind-process" directives from
frontends") and an error message indicates that it's no more supported.
However it says "stats" is not supported instead of "stats bind-process",
making it a bit confusing.

This should be backported to 2.7.
This commit is contained in:
Willy Tarreau 2023-04-23 09:40:56 +02:00
parent 1307cd42d2
commit 023c311d70

View File

@ -617,7 +617,7 @@ static int cli_parse_global(char **args, int section_type, struct proxy *curpx,
global.cli_fe->maxconn = maxconn;
}
else if (strcmp(args[1], "bind-process") == 0) {
memprintf(err, "'%s' is not supported anymore.", args[0]);
memprintf(err, "'%s %s' is not supported anymore.", args[0], args[1]);
return -1;
}
else {