]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_agent: Produce more readable error messages
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 28 Oct 2014 02:41:27 +0000 (03:41 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 28 Oct 2014 19:06:27 +0000 (20:06 +0100)
commitb7fe5a6555a3c23205794b59a6736c6eb7c9464b
tree476471a2f9797f59cde443d1292a90cf1f0c5831
parentd70cc1fa7219b347a301e132bb927f41958b372d
qemu_agent: Produce more readable error messages

Not every error message from qemu-ga has to have the 'class' field
filled out. For instance, I've seen this error message lately:

  qemuAgentCheckError:1047 : unable to execute QEMU agent command \
  {"execute":"guest-set-time"}: \
  {"error":{"desc":"Invalid parameter type, expected: integer"}}

However, this got translated into rather generic error message:

  internal error: unable to execute QEMU agent command
  'guest-set-time': unknown QEMU command error

So we've dropped better error message in favor of a generic one.
This is due to our code which expects 'class' which is not
present here.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_agent.c