vl: Use error_report() for --display errors
commitc6bf0f7ffa90c720377eb6bddd27037041acbc5b
authorMarkus Armbruster <armbru@redhat.com>
Fri, 13 Feb 2015 17:23:45 +0000 (13 18:23 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 22 Jun 2015 16:20:39 +0000 (22 18:20 +0200)
tree395c882c353cf575b14bcf799d01bdb8ee7432c3
parent1459407e88632e6d66cd6b71326eaf78e0a80772
vl: Use error_report() for --display errors

Results in nicer error messages.  Before this patch:

    Invalid GTK option string: gtk,lirum-larum

After:

    qemu-system-x86_64: -display gtk,lirum-larum: Invalid GTK option string

Of course, the thing ought to use QemuOpts instead of parsing by hand.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
vl.c