]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage_conf: Fix the error type
authorOsier Yang <jyang@redhat.com>
Wed, 22 May 2013 12:05:16 +0000 (20:05 +0800)
committerOsier Yang <jyang@redhat.com>
Fri, 24 May 2013 14:34:16 +0000 (22:34 +0800)
s/VIR_ERR_INTERNAL_ERROR/VIR_ERR_XML_ERROR/.

src/conf/storage_conf.c

index 64971852b0c58b332a3d98e606c476a6b12f445e..ed9effdb828602510216df30062c962d07082b04 100644 (file)
@@ -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;
     }