From: Tim Duesterhus Date: Tue, 18 Aug 2020 20:06:51 +0000 (+0200) Subject: DOC: cache: Use '' instead of '' in error message X-Git-Tag: v2.3-dev4~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea969f6f26adfa081df0d439723813cfcd4862c4;p=thirdparty%2Fhaproxy.git DOC: cache: Use '' instead of '' in error message When the cache name is left out in 'filter cache' the error message refers to a missing ''. 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+. --- diff --git a/src/cache.c b/src/cache.c index 533b902bf6..4f8d2e04a0 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1407,7 +1407,7 @@ parse_cache_flt(char **args, int *cur_arg, struct proxy *px, /* Get the cache filter name. point on "cache" keyword */ if (!*args[pos + 1]) { - memprintf(err, "%s : expects an argument", args[pos]); + memprintf(err, "%s : expects a argument", args[pos]); goto error; } name = strdup(args[pos + 1]);