mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-23 23:29:15 +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)
|
||||
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