summaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index ebf7546d..a5fdf850 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -256,7 +256,7 @@ bool load_config(const char *file) {
256 256
257 FILE *f = fopen(path, "r"); 257 FILE *f = fopen(path, "r");
258 if (!f) { 258 if (!f) {
259 fprintf(stderr, "Unable to open %s for reading", path); 259 sway_log(L_ERROR, "Unable to open %s for reading", path);
260 free(path); 260 free(path);
261 return false; 261 return false;
262 } 262 }
@@ -272,7 +272,11 @@ bool load_config(const char *file) {
272 272
273 update_active_bar_modifiers(); 273 update_active_bar_modifiers();
274 274
275 return config_load_success; 275 if (!config_load_success) {
276 sway_log(L_ERROR, "Error(s) loading config!");
277 }
278
279 return true;
276} 280}
277 281
278bool read_config(FILE *file, bool is_active) { 282bool read_config(FILE *file, bool is_active) {