]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: add error message when no graphical display is found
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 24 Jul 2014 12:18:23 +0000 (14:18 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 24 Jul 2014 14:23:41 +0000 (16:23 +0200)
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tools/virsh-domain.c

index ba472586226c9172fa954dcea1714780ea4c788b..4652b7e90f0bdaafdfb72d361b09e50e66a9f5ae 100644 (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);