mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
cmd_bind_or_unbind_switch: fix copy/paste typo error message
`[0]` is the switch type, not its state; we want `[1]` for that, and it's a string not an int :)
This commit is contained in:
parent
4cdc4ac63a
commit
b17cf58a4d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue