spice-char: improve error reporting
commit096b4894e5c6882f9425b0efa5cb1384bfb2d273
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 30 Nov 2016 13:55:20 +0000 (30 17:55 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 17:07:59 +0000 (27 18:07 +0100)
tree89d2245a0ecee6e3389bd9ea128dc1a994584846
parent1876ed04dc3a501f205bbeaa45403966b73da70c
spice-char: improve error reporting

Set errp to report errors up to the right monitor.

Use error_append_hint() to give hints about parameters on !qmp monitors,
instead of a direct fprintf() call.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
spice-qemu-char.c