config: configuration errors are no longer fatal

Instead of refusing to start foot on configuration errors, we start
and print a user-notification.
This commit is contained in:
Daniel Eklöf 2020-07-31 17:07:14 +02:00
parent 639a61abd8
commit b00dfcf7b6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 144 additions and 80 deletions

2
main.c
View file

@ -322,7 +322,7 @@ main(int argc, char *const *argv)
}
struct config conf = {NULL};
if (!config_load(&conf, conf_path)) {
if (!config_load(&conf, conf_path, check_config)) {
config_free(conf);
return ret;
}