From bcf90f5f3494e3406a1b66ed0b6f8232d55e1a16 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 25 Jun 2011 13:37:05 +0000 Subject: [PATCH] warn if we can't parse the config file on start, just like we do on reload. part of a larger diff that was ok oga@ --- conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf.c b/conf.c index f5588bc..2a34d32 100644 --- a/conf.c +++ b/conf.c @@ -283,7 +283,8 @@ conf_setup(struct conf *c, const char *conf_file) conf_init(c); - (void)parse_config(c->conf_path, c); + if (parse_config(c->conf_path, c) == -1) + warnx("config file %s has errors, not loading", c->conf_path); } void