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

[libvirt] [PATCH 09/16] GlibGerror can be raised by virt-sandbox-service, need to catch and write to stderr



Signed-off-by: Dan Walsh <dwalsh redhat com>
---
 bin/virt-sandbox-service | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/virt-sandbox-service b/bin/virt-sandbox-service
index b816933..ca472f5 100755
--- a/bin/virt-sandbox-service
+++ b/bin/virt-sandbox-service
@@ -1074,3 +1074,7 @@ if __name__ == '__main__':
         sys.stderr.write("%s: %s\n" % (sys.argv[0], e))
         sys.stderr.flush()
         sys.exit(1)
+    except GLib.GError, e:
+        sys.stderr.write("%s: %s\n" % (sys.argv[0], e))
+        sys.stderr.flush()
+        sys.exit(1)
-- 
1.8.2


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