]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix up the error message if we can't parse the snapshot XML.
authorChris Lalancette <clalance@redhat.com>
Fri, 23 Apr 2010 15:58:14 +0000 (11:58 -0400)
committerChris Lalancette <clalance@redhat.com>
Tue, 27 Apr 2010 18:11:36 +0000 (14:11 -0400)
Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/conf/domain_conf.c

index 72f88c761cd911b3c735c683c309ddb22b771d85..1607e8b083f9d3fb0f0cee72d3ab36c5d8942d56 100644 (file)
@@ -6606,8 +6606,7 @@ virDomainSnapshotDefPtr virDomainSnapshotDefParseString(const char *xmlStr,
     }
 
     if (!xmlStrEqual(root->name, BAD_CAST "domainsnapshot")) {
-        virDomainReportError(VIR_ERR_INTERNAL_ERROR,
-                              "%s", _("incorrect root element"));
+        virDomainReportError(VIR_ERR_XML_ERROR, "%s", _("domainsnapshot"));
         goto cleanup;
     }