Fix some errors with config loading

This commit is contained in:
Drew DeVault 2015-08-10 15:45:36 -04:00
parent accde8343b
commit 54374d81b5
2 changed files with 5 additions and 2 deletions

View file

@ -368,5 +368,8 @@ int handle_command(struct sway_config *config, char *exec) {
free(argv[i]); free(argv[i]);
} }
free(argv); free(argv);
if (ret != 0) {
sway_log(L_ERROR, "Command failed: %s", cmd);
}
return ret; return ret;
} }

View file

@ -43,8 +43,8 @@ int main(int argc, char **argv) {
} }
setenv("DISPLAY", ":1", 1); setenv("DISPLAY", ":1", 1);
if (load_config()) { if (!load_config()) {
exit(1); sway_abort("Unable to load config");
} }
wlc_run(); wlc_run();