]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: use string libvirt to prefix error message instead of libvir
authorGuannan Ren <gren@redhat.com>
Mon, 4 Mar 2013 12:38:18 +0000 (20:38 +0800)
committerGuannan Ren <gren@redhat.com>
Mon, 4 Mar 2013 15:21:20 +0000 (23:21 +0800)
commitb95c13cd33a85606ec920df455b8606a37a18a8c
tree62fcba8fdecaa3d04cd87b6822a1476078ca8752
parent443ec5c8c36e05819eae6157211b3691bebfe970
util: use string libvirt to prefix error message instead of libvir

BZ:https://bugzilla.redhat.com/show_bug.cgi?id=912021
Without error handler set, virDefaultErrorFunc will be called, the
error message is prefixed with "libvir:". It become a little better
by using prefix "libvirt:" when working with upper application.

For example:
1, stop libvirtd daemon
2, run virt-top.
libvir: XML-RPC error : Failed to connect \
        socket to '/var/run/libvirt/libvirt-sock-ro': \
        No such file or directory
libvirt: VIR_ERR_SYSTEM_ERROR: VIR_FROM_RPC: \
        Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': \
        No such file or directory
src/util/virerror.c