[libvirt] [PATCH 1/2] virsh: add error message when no graphical display is found

Martin Kletzander mkletzan at redhat.com
Thu Jul 24 13:46:48 UTC 2014


Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 tools/virsh-domain.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index ba47258..4652b7e 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);
-- 
2.0.2




More information about the libvir-list mailing list