BUG/MINOR: cfgparse: fix typo in 'option httplog' error message

The error message was displaying the wrong argument when 'option
httplog' took a wrong argument.
This commit is contained in:
William Lallemand 2015-05-28 18:02:48 +02:00 committed by Willy Tarreau
parent d3a23c3eb8
commit 77063bc0c6

View File

@ -4132,7 +4132,7 @@ stats_error_parsing:
curproxy->options2 |= PR_O2_CLFLOG; curproxy->options2 |= PR_O2_CLFLOG;
logformat = clf_http_log_format; logformat = clf_http_log_format;
} else { } else {
Alert("parsing [%s:%d] : keyword '%s' only supports option 'clf'.\n", file, linenum, args[2]); Alert("parsing [%s:%d] : keyword '%s' only supports option 'clf'.\n", file, linenum, args[1]);
err_code |= ERR_ALERT | ERR_FATAL; err_code |= ERR_ALERT | ERR_FATAL;
goto out; goto out;
} }