mirror of https://gitee.com/openkylin/libvirt.git
virsh: add error message when no graphical display is found
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
17bddc46f4
commit
e858628e45
|
@ -9543,6 +9543,9 @@ cmdDomDisplay(vshControl *ctl, const vshCmd *cmd)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ret)
|
||||||
|
vshError(ctl, _("No graphical display found"));
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
VIR_FREE(doc);
|
VIR_FREE(doc);
|
||||||
VIR_FREE(xpath);
|
VIR_FREE(xpath);
|
||||||
|
|
Loading…
Reference in New Issue