summaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-03-24 17:27:03 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-03-24 17:27:03 -0400
commitdcf5c67681128c62fd8e807f9681b334f0485f80 (patch)
tree9ed266fe8b9ab0f720d1defb28f085b26bf9cd98 /sway/main.c
parentMake the nvidia warning louder (diff)
parentGracefully exit when config is not found (diff)
downloadsway-dcf5c67681128c62fd8e807f9681b334f0485f80.tar.gz
sway-dcf5c67681128c62fd8e807f9681b334f0485f80.tar.zst
sway-dcf5c67681128c62fd8e807f9681b334f0485f80.zip
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.c3
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) {
211 } 211 }
212 212
213 if (!load_config(config_path)) { 213 if (!load_config(config_path)) {
214 sway_log(L_ERROR, "Error(s) loading config!"); 214 sway_terminate(EXIT_FAILURE);
215 } 215 }
216
216 if (config_path) { 217 if (config_path) {
217 free(config_path); 218 free(config_path);
218 } 219 }