projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e629195
)
MINOR: cfgparse: Improve error message for invalid \x sequences
author
Tim Duesterhus
<tim@bastelstu.be>
Thu, 7 May 2020 17:24:20 +0000
(19:24 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 7 May 2020 20:46:26 +0000
(22:46 +0200)
This patch states the invalid \x sequence within the error message.
src/cfgparse.c
patch
|
blob
|
history
diff --git
a/src/cfgparse.c
b/src/cfgparse.c
index
5815da0
..
63e150f
100644
(file)
--- 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;
}