]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virterror: Misleading error message when name is missing
authorBenjamin Cama <benoar@dolka.fr>
Thu, 23 Feb 2012 16:37:30 +0000 (17:37 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 23 Feb 2012 23:31:45 +0000 (16:31 -0700)
commitcff5573da22bfdc0db9d90d6a3a25a520cb1b955
tree3ae2e46a50a7ca8a2725bd4d7ed6624eb6549ab4
parent751fec35578359bd83110f83e3de91ad6963a288
virterror: Misleading error message when name is missing

[forwarding this here from RH bug #796732]

When creating a network (virsh net-create) with an erroneous XML
containing an empty <name> element, the error message is misleading:

error: Failed to create network from foo.xml
error: missing domain name information

It took me a bit of time to figure out that it was the *network* name
that was missing (I generate this xml and didn't look at it, first).

I realized that the same message is used for missing name when creating
a domain, network, or device node.
AUTHORS
src/util/virterror.c