qmp hmp: Improve error messages when SPICE is not in use
commitcfa9bb236911eaa30ac58072105881a65cbbb612
authorMarkus Armbruster <armbru@redhat.com>
Tue, 13 Jan 2015 16:21:45 +0000 (13 17:21 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 29 Jan 2015 09:01:31 +0000 (29 10:01 +0100)
treee81cbcc04191681d11acd3ae1c12db1e09bd823c
parentb25d81ba332dc06757d40ffe64944ba27082de0a
qmp hmp: Improve error messages when SPICE is not in use

Commit 7572150 adopted QERR_DEVICE_NOT_ACTIVE for the purpose,
probably because adding another error seemed cumbersome overkill.
Produces "No spice device has been activated", which is awkward.

We've since abandoned our quest for "rich" error objects.  Time to
undo the damage to this error message.  Replace it by "SPICE is not in
use".

Keep the stupid DeviceNotActive ErrorClass for compatibility, even
though Libvirt doesn't use it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
include/ui/qemu-spice.h