]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] config: fix error message when config file is not found
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Dec 2009 12:10:44 +0000 (13:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Dec 2009 12:10:44 +0000 (13:10 +0100)
commitc438242878c8bdabffaef62dd2859920cc3e7d26
treed922a1474984fd904faa3aa1f20f7bfdd102444a
parentd0f06fc4b2c912f9e0304d719c2f45461ba1ea39
[BUG] config: fix error message when config file is not found

Cameron Simpson reported an annoying case where haproxy simply reports
"Error(s) found in configuration file" when the file is not found or
not readable.

Fortunately the parsing function still returns -1 in case of open
error, so we're able to detect the issue from the caller and report
the corresponding errno message.
src/haproxy.c