mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
qemu_process: don't print empty line if qemu exits without any error
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1335617 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
c1b8d87bab
commit
407c6909bc
@ -1809,8 +1809,11 @@ qemuProcessReportLogError(qemuDomainLogContextPtr logCtxt,
|
||||
return -1;
|
||||
|
||||
virResetLastError();
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("%s: %s"), msgprefix, logmsg);
|
||||
if (virStringIsEmpty(logmsg))
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", msgprefix);
|
||||
else
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, _("%s: %s"), msgprefix, logmsg);
|
||||
|
||||
VIR_FREE(logmsg);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user