]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: cache: Use '<name>' instead of '<id>' in error message
authorTim Duesterhus <tim@bastelstu.be>
Tue, 18 Aug 2020 20:06:51 +0000 (22:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Aug 2020 20:51:24 +0000 (22:51 +0200)
When the cache name is left out in 'filter cache' the error message refers
to a missing '<id>'. The name of the cache is called 'name' within the docs.

Adjust the error message for consistency.

The error message was introduced in 99a17a2d91f9044ea20bba6617048488aed80555.
This commit first appeared in 1.9, thus the patch must be backported to 1.9+.

src/cache.c

index 533b902bf6d332655e836964ed741885a77f9677..4f8d2e04a0a55b6411244a6b2040c2ef9e0558f8 100644 (file)
@@ -1407,7 +1407,7 @@ parse_cache_flt(char **args, int *cur_arg, struct proxy *px,
 
        /* Get the cache filter name. <pos> point on "cache" keyword */
        if (!*args[pos + 1]) {
-               memprintf(err, "%s : expects an <id> argument", args[pos]);
+               memprintf(err, "%s : expects a <name> argument", args[pos]);
                goto error;
        }
        name = strdup(args[pos + 1]);