]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: try to suggest correct variable names on errors 20250624-diag-empty-var-2
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2025 15:25:55 +0000 (17:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2025 16:29:45 +0000 (18:29 +0200)
commit9929c12cb2e4d986dd73b0dac5f40b2b2b54539b
treea7ba6f4e4ebf18aaabf60f9fef47eb11eff5e80e
parentc452e69d4b0bc2e3fc60ccc36fdf00bd73d1b57c
MINOR: cfgparse: try to suggest correct variable names on errors

When an empty argument comes from the use of a non-existing variable,
we'll now detect the difference with an empty variable (error pointer
points to the variable's name instead), and submit it to env_suggest()
to see if another variable looks likely to be the right one or not.

This can be quite useful to quickly figure how to fix misspelled variable
names. Currently only series of letters, digits and underscores are
attempted to be resolved as a name.
src/cfgparse.c