[PATCH spice-common 3/4] codegen: Exit with error on error generating C structures

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

 



This was some left-over during development of C structure
generations (the single structure generation was skipped).

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 spice_codegen.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/spice_codegen.py b/spice_codegen.py
index 0532d6f..d3a1bf5 100755
--- a/spice_codegen.py
+++ b/spice_codegen.py
@@ -283,6 +283,7 @@ current:
         print >> sys.stderr, 'type %s' % t
         print >> sys.stderr, writer.getvalue()
         traceback.print_exc(sys.stderr)
+        sys.exit(1)
 
 def generate_declarations():
     writer = codegen.CodeWriter()
-- 
2.20.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]