From: Osier Yang Date: Wed, 22 May 2013 12:05:16 +0000 (+0800) Subject: storage_conf: Fix the error type X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=267915ee69a74804f203e94dee3acafdc2b3a43d;p=libvirt.git storage_conf: Fix the error type s/VIR_ERR_INTERNAL_ERROR/VIR_ERR_XML_ERROR/. --- diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index 64971852b0..ed9effdb82 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; }