aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/commands/bind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c
index 4c67b3ce..25be415e 100644
--- a/sway/commands/bind.c
+++ b/sway/commands/bind.c
@@ -560,8 +560,8 @@ struct cmd_results *cmd_bind_or_unbind_switch(int argc, char **argv,
free_switch_binding(binding);
return cmd_results_new(CMD_FAILURE,
"Invalid %s command "
- "(expected switch state: unknown state %d)",
- bindtype, split->items[0]);
+ "(expected switch state: unknown state %s)",
+ bindtype, split->items[1]);
}
list_free_items_and_destroy(split);