summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2011-06-25 13:37:05 +0000
committerokan <okan>2011-06-25 13:37:05 +0000
commitbcf90f5f3494e3406a1b66ed0b6f8232d55e1a16 (patch)
treee8901b21b25aca26df015b6e6523551c50d8f7dd
parent0573d184f7fe80a1278f66aaf8692361965615bf (diff)
downloadcwm-bcf90f5f3494e3406a1b66ed0b6f8232d55e1a16.tar.gz
cwm-bcf90f5f3494e3406a1b66ed0b6f8232d55e1a16.tar.xz
cwm-bcf90f5f3494e3406a1b66ed0b6f8232d55e1a16.zip
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@
-rw-r--r--conf.c3
1 files changed, 2 insertions, 1 deletions
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