storage_conf: Fix the error type

s/VIR_ERR_INTERNAL_ERROR/VIR_ERR_XML_ERROR/.
This commit is contained in:
Osier Yang 2013-05-22 20:05:16 +08:00
parent 3c37730efc
commit 267915ee69

View File

@ -829,7 +829,7 @@ virStoragePoolDefParseXML(xmlXPathContextPtr ctxt)
type = virXPathString("string(./@type)", ctxt); type = virXPathString("string(./@type)", ctxt);
if ((ret->type = virStoragePoolTypeFromString(type)) < 0) { if ((ret->type = virStoragePoolTypeFromString(type)) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_XML_ERROR,
_("unknown storage pool type %s"), type); _("unknown storage pool type %s"), type);
goto cleanup; goto cleanup;
} }