Hi Cameron,

On Wed, Dec 02, 2009 at 02:48:21PM +1100, Cameron Simpson wrote:
> I just stumbled over a very minor problem with HAproxy's config file
> error reporting. This command:
> 
>   /usr/local/bin/haproxy-1.3.22 -f haproxy.TPROXY4.cfg
> 
> produced:
> 
>   [ALERT] 335/144132 (7273) : Error(s) found in configuration file : 
> haproxy.TPROXY4.cfg
> 
> The actual problem is the the file "haproxy.TPROXY4.cfg" does not exist
> because I am stupidly standing in the wrong directory, but the error
> message had me opening the config file looking for a mistake.
> 
> Could this be changed to indicate failure to open the config file
> please?

Oh yes, I've been hit exactly the same way once and it also got
me nervous. I quickly checked how this could be changed and from
my memories, it requires that we return an error code instead of
a boolean in the parser. Not much complicated in my opinion, I'll
add that to the todo list.

Cheers,
Willy


Reply via email to