If command returns error, report it.

This commit is contained in:
nicm 2015-12-13 16:11:42 +00:00
parent ff599f4004
commit 208e2dad1e
1 changed files with 2 additions and 0 deletions

View File

@ -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);