mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Gracefully exit when config is not found
This makes sure that sway will gracefully exit if the config is not found or sway is unable to read it.
This commit is contained in:
parent
06107bb44e
commit
938ff29b7b
2 changed files with 8 additions and 3 deletions
|
|
@ -211,8 +211,9 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
|
||||
if (!load_config(config_path)) {
|
||||
sway_log(L_ERROR, "Error(s) loading config!");
|
||||
sway_terminate(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (config_path) {
|
||||
free(config_path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue