[libvirt] [PATCH 06/12] storage_conf: Fix the error type

Osier Yang jyang at redhat.com
Wed May 22 12:05:16 UTC 2013


s/VIR_ERR_INTERNAL_ERROR/VIR_ERR_XML_ERROR/.
---
 src/conf/storage_conf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c
index 76dae52..efe02e8 100644
--- a/src/conf/storage_conf.c
+++ b/src/conf/storage_conf.c
@@ -829,7 +829,7 @@ virStoragePoolDefParseXML(xmlXPathContextPtr ctxt)
 
     type = virXPathString("string(./@type)", ctxt);
     if ((ret->type = virStoragePoolTypeFromString(type)) < 0) {
-        virReportError(VIR_ERR_INTERNAL_ERROR,
+        virReportError(VIR_ERR_XML_ERROR,
                        _("unknown storage pool type %s"), type);
         goto cleanup;
     }
-- 
1.8.1.4




More information about the libvir-list mailing list