mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-24 07:38:53 +01: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)
|
if (cmd_prepare_state(cmd, cmdq) != 0)
|
||||||
goto error;
|
goto error;
|
||||||
retval = cmd->entry->exec(cmd, cmdq);
|
retval = cmd->entry->exec(cmd, cmdq);
|
||||||
|
if (retval == CMD_RETURN_ERROR)
|
||||||
|
goto error;
|
||||||
|
|
||||||
cmdq_guard(cmdq, "end", flags);
|
cmdq_guard(cmdq, "end", flags);
|
||||||
return (retval);
|
return (retval);
|
||||||
|
Loading…
Reference in New Issue
Block a user