BUG/MINOR: cfgparse: wrong section name upon error

When a unknown keyword was used in the "userlist" section, the error was
mentioning the "users" section, instead of "userlist".

Could be backported in every branches.
This commit is contained in:
William Lallemand 2026-01-07 18:00:32 +01:00
parent 4aff6d1c25
commit 91cff75908

View File

@ -1534,7 +1534,7 @@ cfg_parse_users(const char *file, int linenum, char **args, int kwm)
}
}
} else {
ha_alert("parsing [%s:%d]: unknown keyword '%s' in '%s' section\n", file, linenum, args[0], "users");
ha_alert("parsing [%s:%d]: unknown keyword '%s' in '%s' section\n", file, linenum, args[0], "userlist");
err_code |= ERR_ALERT | ERR_FATAL;
}