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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]