提交 c7a6fc37 编写于 作者: M Matthias Bolte

Output commandline on status != 0 in virCommandWait

This helps identifying which command exited with status != 0.
上级 dad4a3f2
......@@ -1221,9 +1221,11 @@ virCommandWait(virCommandPtr cmd, int *exitstatus)
if (exitstatus == NULL) {
if (status != 0) {
char *str = virCommandToString(cmd);
virCommandError(VIR_ERR_INTERNAL_ERROR,
_("Child process exited with status %d."),
WEXITSTATUS(status));
_("Child process (%s) exited with status %d."),
str ? str : cmd->args[0], WEXITSTATUS(status));
VIR_FREE(str);
return -1;
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册