aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-29 12:43:33 -0400
committerTony Crisci <tony@dubstepdish.com>2017-08-29 12:43:33 -0400
commit6699024b445a152e78670549efabe024cd670e99 (patch)
tree505cef21dd34852f392cab19c2829d9dbf93f7fb /examples
parentb6031d106525706db6eef03d2a500259357ecb69 (diff)
handle empty config file
Diffstat (limited to 'examples')
-rw-r--r--examples/config.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/config.c b/examples/config.c
index a1ed5d5a..954edb06 100644
--- a/examples/config.c
+++ b/examples/config.c
@@ -212,9 +212,7 @@ struct example_config *parse_args(int argc, char *argv[]) {
int result = ini_parse(config->config_path, config_ini_handler, config);
if (result == -1) {
- wlr_log(L_ERROR, "Could not find config file at %s",
- config->config_path);
- exit(1);
+ wlr_log(L_DEBUG, "No config file found. Using empty config.");
} else if (result == -2) {
wlr_log(L_ERROR, "Could not allocate memory to parse config file");
exit(1);