If command returns error, report it.

This commit is contained in:
nicm 2015-12-13 16:11:42 +00:00
parent ff599f4004
commit 208e2dad1e

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