diff options
author | Drew DeVault <[email protected]> | 2018-08-03 15:08:38 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2018-08-03 15:08:38 -0400 |
commit | 38675eba7be471a2dacb5928f54d046297c23517 (patch) | |
tree | 7982d1f38fcb3620372c1c8461de1450063e5355 /sway/commands/include.c | |
parent | 3e2bf7f3a550db995a38808e0abd53fefab96f80 (diff) | |
parent | 36fd84cc42ebb2933d24c2d3d4b84f3f32f065b0 (diff) |
Merge pull request #2400 from RedSoxFan/swaynag-config-errors
Show swaynag on config errors
Diffstat (limited to 'sway/commands/include.c')
-rw-r--r-- | sway/commands/include.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/commands/include.c b/sway/commands/include.c index 1ba9a10d..61f383bb 100644 --- a/sway/commands/include.c +++ b/sway/commands/include.c @@ -7,8 +7,10 @@ struct cmd_results *cmd_include(int argc, char **argv) { return error; } - if (!load_include_configs(argv[0], config)) { - return cmd_results_new(CMD_INVALID, "include", "Failed to include sub configuration file: %s", argv[0]); + if (!load_include_configs(argv[0], config, + &config->swaynag_config_errors)) { + return cmd_results_new(CMD_INVALID, "include", + "Failed to include sub configuration file: %s", argv[0]); } return cmd_results_new(CMD_SUCCESS, NULL, NULL); |