Re: [PATCH] Improve error reporting when libvirtd is not installed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/06/2011 02:48 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> Currently if you try to connect to a local libvirtd when
> libvirtd is not in $PATH, you'll get an error
> 
>   error: internal error invalid use of command API
> 
> This is because remoteFindDaemonPath() returns NULL, which
> causes us to pass NULL into virNetSocketConnectUNIX which
> in turn causes us to pass NULL into virCommandNewArgList.
> 
> Adding missing error checks improves this to
> 
>   error: internal error Unable to locate libvirtd daemon in $PATH

Nice.  Seems simple enough to include in 0.9.8.

> +    if (spawnDaemon && !binary) {
> +        virNetError(VIR_ERR_INTERNAL_ERROR,
> +                    _("Auto-spawn of daemon requested, but not binary specified"));

s/not/no/

ACK with spelling nit fixed.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]