From: Martin Kletzander Date: Thu, 24 Jul 2014 12:18:23 +0000 (+0200) Subject: virsh: add error message when no graphical display is found X-Git-Tag: v1.2.7-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e858628e453ec12ec7cfa40d5020b3b64265728d;p=thirdparty%2Flibvirt.git virsh: add error message when no graphical display is found Signed-off-by: Martin Kletzander --- 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);