]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cli: clarify error message about stats bind-process
authorWilly Tarreau <w@1wt.eu>
Sun, 23 Apr 2023 07:40:56 +0000 (09:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Apr 2023 07:40:56 +0000 (09:40 +0200)
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.

src/cli.c

index 43c36cc16033d1ada22de0ed45f346a3b1a46c94..caa837e427bbbbc14163fd41e74dd33decdd5a67 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -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 {