提交 267915ee 编写于 作者: O Osier Yang

storage_conf: Fix the error type

s/VIR_ERR_INTERNAL_ERROR/VIR_ERR_XML_ERROR/.
上级 3c37730e
...@@ -829,7 +829,7 @@ virStoragePoolDefParseXML(xmlXPathContextPtr ctxt) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册