]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] cfgparser/stats: fix error message
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Wed, 6 Jan 2010 15:25:05 +0000 (16:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2010 23:34:27 +0000 (00:34 +0100)
commit260a3bb17b874e50222b59d7ca17cf6454accd08
tree56125314593951eb3059c5cb41fa66d621fcba3b
parentc0f0c8605bc10255a8f0ec8aea00ce1f4ed2be40
[BUG] cfgparser/stats: fix error message

Fix the error message by unification and goto, previously we had
two independent lists of supported keywords and were raporting 'stats'
instead of a wrong keyword.

Code:
 stats wrong-keyword
 stats

Before:
 [ALERT] 005/163032 (27175) : parsing [haproxy.cfg:248] : unknown stats parameter 'stats' (expects 'hide-version', 'uri', 'realm', 'auth' or 'enable').
 [ALERT] 005/163032 (27175) : parsing [haproxy.cfg:249] : 'stats' expects 'uri', 'realm', 'auth', 'scope' or 'enable', 'hide-version', 'show-node', 'show-desc', 'show-legends'.

After:
 [ALERT] 005/162841 (22710) : parsing [haproxy.cfg:248]: unknown stats parameter 'wrong-keyword', expects 'uri', 'realm', 'auth', 'scope', 'enable', 'hide-version', 'show-node', 'show-desc' or 'show-legends'.
 [ALERT] 005/162841 (22710) : parsing [haproxy.cfg:249]: missing keyword in 'stats', expects 'uri', 'realm', 'auth', 'scope', 'enable', 'hide-version', 'show-node', 'show-desc' or 'show-legends'.
src/cfgparse.c