mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
Fix up the error message if we can't parse the snapshot XML.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
75d88455f5
commit
71f99af5a4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user