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.
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;
}
}