]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: improve error for failed JSON commands
authorEric Blake <eblake@redhat.com>
Tue, 4 Dec 2012 20:24:40 +0000 (13:24 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 4 Dec 2012 22:56:03 +0000 (15:56 -0700)
commit149fa591c1c4ab483f09886e229578bb6a5e774e
tree50873dca72309b7ae4df3711e9037e01c04adc2a
parent3bef4adf7358a948b4159936862d7d857e08a44b
qemu: improve error for failed JSON commands

Only one error in qemu_monitor was already using the relatively
new OPERATION_UNSUPPORTED error, even though it is a better fit
for all of the messages related to options that are unsupported
due to the version of qemu in use rather than due to a user's
XML or .conf file choice.  Suggested by Osier Yang.

* src/qemu/qemu_monitor.c (qemuMonitorSendFileHandle)
(qemuMonitorAddHostNetwork, qemuMonitorRemoveHostNetwork)
(qemuMonitorAttachDrive, qemuMonitorDiskSnapshot)
(qemuMonitorDriveMirror, qemuMonitorTransaction)
(qemuMonitorBlockCommit, qemuMonitorDrivePivot)
(qemuMonitorBlockJob, qemuMonitorSystemWakeup)
(qemuMonitorGetVersion, qemuMonitorGetMachines)
(qemuMonitorGetCPUDefinitions, qemuMonitorGetCommands)
(qemuMonitorGetEvents, qemuMonitorGetKVMState)
(qemuMonitorGetObjectTypes, qemuMonitorGetObjectProps)
(qemuMonitorGetTargetArch): Use better error category.
src/qemu/qemu_monitor.c