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

Submitted by Frediano Ziglio on Aug. 13, 2019, 4:56 p.m.

Details

Message ID 20190813165608.32249-3-fziglio@redhat.com
State Accepted
Commit 60e045369863043a8a5f2eb36566447df63f6277
Headers show
Series "Series without cover letter" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Aug. 13, 2019, 4:56 p.m.
This was some left-over during development of C structure
generations (the single structure generation was skipped).

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

Patch hide | download patch | download mbox

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()

Comments

On 8/13/19 7:56 PM, Frediano Ziglio wrote:
> This was some left-over during development of C structure
> generations (the single structure generation was skipped).
> 
> Signed-off-by: Frediano Ziglio <fziglio@redhat.com>

Ack.

Uri.

> ---
>   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()
>