From: Tim Duesterhus Date: Thu, 7 May 2020 17:24:20 +0000 (+0200) Subject: MINOR: cfgparse: Improve error message for invalid \x sequences X-Git-Tag: v2.2-dev8~104 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=ac4930e00c70d932e0e8a4b40ae465311f110780;p=haproxy-3.0.git MINOR: cfgparse: Improve error message for invalid \x sequences This patch states the invalid \x sequence within the error message. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 5815da0..63e150f 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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; }