]> xenbits.xensource.com Git - libvirt.git/commit
event: don't overwrite registration error message
authorEric Blake <eblake@redhat.com>
Tue, 31 Dec 2013 14:09:23 +0000 (07:09 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 2 Jan 2014 12:54:53 +0000 (05:54 -0700)
commitcfd62c1f610801ae7e7d2aceaef00a4108fd9074
treefec8c7b17fec56f8622fe6875bdd63ebddbfe86d
parent53e3f9e46e5ded9d2b62de24fe7c419949c5216e
event: don't overwrite registration error message

Prior to this patch, an attempt to register an event without an
event loop started results in the vague:

libvirt: Remote Driver error : adding cb to list

Now it gives the much nicer:

libvirt:  error : internal error: could not initialize domain event timer

This also avoids hiding other reasonable error messages, such as
attempts to register a duplicate callback or OOM errors.

* src/remote/remote_driver.c (remoteConnectNetworkEventRegisterAny)
(remoteConnectDomainEventRegister)
(remoteConnectDomainEventRegisterAny): Preserve more detailed error.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/remote/remote_driver.c