From e858628e453ec12ec7cfa40d5020b3b64265728d Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Thu, 24 Jul 2014 14:18:23 +0200 Subject: [PATCH] virsh: add error message when no graphical display is found Signed-off-by: Martin Kletzander --- tools/virsh-domain.c | 3 +++ 1 file changed, 3 insertions(+) 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);