summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-08-05 22:59:06 -0400
committerDrew DeVault <[email protected]>2015-08-05 22:59:06 -0400
commit47b28bd335fe279df35f746d5797a1071cb4b989 (patch)
treeb475d79248bb878f0c5060831ca8c3eb486e62fa /sway/commands.c
parente7a88685145d0159b407f9493a5ae579087e8b69 (diff)
Clean up config loading and launch wayland
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index a89290a9..4eb733ba 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -139,7 +139,8 @@ int handle_command(struct sway_config *config, char *exec) {
}
struct cmd_handler *handler = find_handler(handlers, sizeof(handlers) / sizeof(struct cmd_handler), cmd);
if (handler == NULL) {
- return 1;
+ fprintf(stderr, "Unknown command '%s'\n", cmd);
+ return 0; // TODO: return error, probably
}
int argc;
char **argv = split_directive(exec + strlen(handler->command), &argc);