mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-27 09:08:47 +01:00
Print %%error not %%end guard on error, from George Nachman.
This commit is contained in:
parent
43d904dbf3
commit
70397e4a95
@ -207,8 +207,12 @@ cmdq_continue(struct cmd_q *cmdq)
|
||||
if (guards)
|
||||
cmdq_print(cmdq, "%%begin");
|
||||
retval = cmdq->cmd->entry->exec(cmdq->cmd, cmdq);
|
||||
if (guards)
|
||||
if (guards) {
|
||||
if (retval == CMD_RETURN_ERROR)
|
||||
cmdq_print(cmdq, "%%error");
|
||||
else
|
||||
cmdq_print(cmdq, "%%end");
|
||||
}
|
||||
|
||||
if (retval == CMD_RETURN_ERROR)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user