MINOR: cfgparse: Improve error message for invalid \x sequences

This patch states the invalid \x sequence within the error message.
This commit is contained in:
Tim Duesterhus 2020-05-07 19:24:20 +02:00 committed by Willy Tarreau
parent e6291956e7
commit ac4930e00c

View File

@ -1965,7 +1965,7 @@ next_line:
skip = 3;
}
else {
ha_alert("parsing [%s:%d] : invalid or incomplete '\\x' sequence in '%s'.\n", file, linenum, args[0]);
ha_alert("parsing [%s:%d] : invalid or incomplete '\\x' sequence '%.*s' in '%s'.\n", file, linenum, 4, line, args[0]);
err_code |= ERR_ALERT | ERR_FATAL;
goto next_line;
}