diff options
author | Drew DeVault <[email protected]> | 2016-03-24 17:27:03 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2016-03-24 17:27:03 -0400 |
commit | dcf5c67681128c62fd8e807f9681b334f0485f80 (patch) | |
tree | 9ed266fe8b9ab0f720d1defb28f085b26bf9cd98 /sway/main.c | |
parent | 06107bb44eddec993354883436767b931f2aa4d7 (diff) | |
parent | 938ff29b7b14d9840a92acb1d1ee4192bfc8e89e (diff) |
Merge pull request #537 from mikkeloscar/exit-on-config-missing
Gracefully exit when config is not found
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c index eef1ad19..c4a5d497 100644 --- a/sway/main.c +++ b/sway/main.c @@ -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); } |