virsh: add error message when no graphical display is found

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2014-07-24 14:18:23 +02:00
parent 17bddc46f4
commit e858628e45

View File

@ -9543,6 +9543,9 @@ cmdDomDisplay(vshControl *ctl, const vshCmd *cmd)
break;
}
if (!ret)
vshError(ctl, _("No graphical display found"));
cleanup:
VIR_FREE(doc);
VIR_FREE(xpath);