diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index ba47258622..4652b7e90f 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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);