From: Valentine Krasnobaeva Date: Wed, 14 Aug 2024 14:20:15 +0000 (+0200) Subject: BUG/MINOR: cfgparse-global: fix err msg in mworker keyword parser X-Git-Tag: v3.1-dev6~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4291d10b440d03500210e16f247ecc59ceb6547e;p=thirdparty%2Fhaproxy.git BUG/MINOR: cfgparse-global: fix err msg in mworker keyword parser This patch fixes the commit 118ac11ce ("cfgparse-global: move mode's keywords in cfg_kw_list"). Error message delivered by keyword parser in **err is always shown with ha_alert() by the caller cfg_parse_global(). The caller always supplies these alerts with the filename and the line number. --- diff --git a/src/cfgparse-global.c b/src/cfgparse-global.c index dbc355a4c8..1fb61e63ed 100644 --- a/src/cfgparse-global.c +++ b/src/cfgparse-global.c @@ -1388,8 +1388,8 @@ static int cfg_parse_global_master_worker(char **args, int section_type, if (strcmp(args[1], "no-exit-on-failure") == 0) global.tune.options |= GTUNE_NOEXIT_ONFAILURE; else { - memprintf(err, "parsing [%s:%d] : '%s' only supports 'no-exit-on-failure' option", - file, line, args[0]); + memprintf(err, "'%s' only supports 'no-exit-on-failure' option", + args[0]); return -1; } }