diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2016-01-20 12:58:39 +1100 |
|---|---|---|
| committer | David Gibson <david@gibson.dropbear.id.au> | 2016-01-30 23:37:37 +1100 |
| commit | 14c6a8949799573570b62cf50c519a3b34a2499b (patch) | |
| tree | a411abeae596f86474f3914f314bfadae7bb1dbd /scripts/qapi.py | |
| parent | 7c150d6f04f23dbcb4402bd5e16a8c86757a727a (diff) | |
| download | focaccia-qemu-14c6a8949799573570b62cf50c519a3b34a2499b.tar.gz focaccia-qemu-14c6a8949799573570b62cf50c519a3b34a2499b.zip | |
pseries: Clean up error handling in spapr_vga_init()
Use error_setg() to return an error rather than an explicit exit(). Previously it was an exit(0) instead of a non-zero exit code, which was simply a bug. Also improve the error message. While we're at it change the type of spapr_vga_init() to bool since that's how we're using it anyway. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions