提交 4487d33f 编写于 作者: C Chris Lalancette

Always clear out the last_error in virshReportError.

Otherwise you can get bogus "unknown error" printouts on
subsequent commands.
Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 0cdff7b5
......@@ -387,7 +387,7 @@ virshReportError(vshControl *ctl)
* no error was ever raised, so just ignore */
last_error = virSaveLastError();
if (!last_error || last_error->code == VIR_ERR_OK)
return;
goto out;
}
if (last_error->code == VIR_ERR_OK) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册