diff options
author | 2010-04-23 11:58:14 -0400 | |
---|---|---|
committer | 2010-04-27 14:11:36 -0400 | |
commit | 71f99af5a42d8aad5f6f758b363cadc6aab9bfb5 (patch) | |
tree | 03968457fb65f91b4e7a5c42bf768a2ce1c8b1b8 | |
parent | The base used for conversion of USB values should be 16 not 10. (diff) | |
download | libvirt-71f99af5a42d8aad5f6f758b363cadc6aab9bfb5.tar.gz libvirt-71f99af5a42d8aad5f6f758b363cadc6aab9bfb5.tar.bz2 libvirt-71f99af5a42d8aad5f6f758b363cadc6aab9bfb5.zip |
Fix up the error message if we can't parse the snapshot XML.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
-rw-r--r-- | src/conf/domain_conf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 72f88c761..1607e8b08 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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; } |