summaryrefslogtreecommitdiff
path: root/daemon/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/config.c')
-rw-r--r--daemon/config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/config.c b/daemon/config.c
index d33ab69..39c5a37 100644
--- a/daemon/config.c
+++ b/daemon/config.c
@@ -528,7 +528,7 @@ rb_config_parse()
dir = opendir(g_state.confdir);
if(!dir)
- err("couldn't read config directory: %s", g_state.confdir);
+ err(1, "couldn't list config directory: %s", g_state.confdir);
while((dire = readdir(dir)) != NULL)
{
@@ -545,6 +545,9 @@ rb_config_parse()
parse_config_file(configfile, &ctx);
}
+ if(!g_state.polls)
+ errx(1, "no config files found in config directory: %s", g_state.confdir);
+
closedir(dir);
}