mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-23 05:15:58 +01:00
handle empty config file
This commit is contained in:
parent
b6031d1065
commit
6699024b44
1 changed files with 1 additions and 3 deletions
|
@ -212,9 +212,7 @@ struct example_config *parse_args(int argc, char *argv[]) {
|
||||||
int result = ini_parse(config->config_path, config_ini_handler, config);
|
int result = ini_parse(config->config_path, config_ini_handler, config);
|
||||||
|
|
||||||
if (result == -1) {
|
if (result == -1) {
|
||||||
wlr_log(L_ERROR, "Could not find config file at %s",
|
wlr_log(L_DEBUG, "No config file found. Using empty config.");
|
||||||
config->config_path);
|
|
||||||
exit(1);
|
|
||||||
} else if (result == -2) {
|
} else if (result == -2) {
|
||||||
wlr_log(L_ERROR, "Could not allocate memory to parse config file");
|
wlr_log(L_ERROR, "Could not allocate memory to parse config file");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in a new issue