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

Uri Lublin uril at redhat.com
Tue Aug 13 17:09:49 UTC 2019


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



More information about the Spice-devel mailing list