]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: filters: Improve errors formating during filters parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 16:03:35 +0000 (17:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 16:03:40 +0000 (17:03 +0100)
The error message reported by a filter during parsing are displayed between
quotes. It is not really user friendly. So let's remove the quotes here.

src/filters.c

index 97f01fcf19522e2b29af2fbcc98db6da9c0a3a1a..792d6f3eede450b2e7af114340bbc70309c9635d 100644 (file)
@@ -241,7 +241,7 @@ parse_filter(char **args, int section_type, struct proxy *curpx,
                        }
                        if (kw->parse(args, &cur_arg, curpx, fconf, err, kw->private) != 0) {
                                if (err && *err)
-                                       memprintf(err, "'%s' : '%s'",
+                                       memprintf(err, "'%s' : %s",
                                                  args[0], *err);
                                else
                                        memprintf(err, "'%s' : error encountered while processing '%s'",