mirror of
https://github.com/tmux/tmux.git
synced 2024-10-31 22:58:49 +00:00
If command returns error, report it.
This commit is contained in:
parent
ff599f4004
commit
208e2dad1e
@ -199,6 +199,8 @@ cmdq_continue_one(struct cmd_q *cmdq)
|
||||
if (cmd_prepare_state(cmd, cmdq) != 0)
|
||||
goto error;
|
||||
retval = cmd->entry->exec(cmd, cmdq);
|
||||
if (retval == CMD_RETURN_ERROR)
|
||||
goto error;
|
||||
|
||||
cmdq_guard(cmdq, "end", flags);
|
||||
return (retval);
|
||||
|
Loading…
Reference in New Issue
Block a user