MINOR cfgparse: Correct the mailer warning text to show the right names to the user

This commit is contained in:
Pieter Baauw 2015-08-17 00:45:05 +02:00 committed by Willy Tarreau
parent f1650a8adf
commit 8669e971a3

View File

@ -7308,9 +7308,9 @@ int check_config_validity()
if (curproxy->email_alert.set) { if (curproxy->email_alert.set) {
if (!(curproxy->email_alert.mailers.name && curproxy->email_alert.from && curproxy->email_alert.to)) { if (!(curproxy->email_alert.mailers.name && curproxy->email_alert.from && curproxy->email_alert.to)) {
Warning("config : 'email-alert' will be ignored for %s '%s' (the presence any of " Warning("config : 'email-alert' will be ignored for %s '%s' (the presence any of "
"'email-alert from', 'email-alert level' 'email-alert mailer', " "'email-alert from', 'email-alert level' 'email-alert mailers', "
"'email-alert hostname', or 'email-alert to' " "'email-alert myhostname', or 'email-alert to' "
"requrires each of 'email-alert from', 'email-alert mailer' and 'email-alert' " "requires each of 'email-alert from', 'email-alert mailers' and 'email-alert to' "
"to be present).\n", "to be present).\n",
proxy_type_str(curproxy), curproxy->id); proxy_type_str(curproxy), curproxy->id);
err_code |= ERR_WARN; err_code |= ERR_WARN;