util: storage: Fix error type in virStorageSourceParseBackingURI

The gluster volume name extraction code was copied from the XML parser
without changing the VIR_ERR_XML_ERROR error code. Use
VIR_ERR_CONFIG_UNSUPPORTED instead.
This commit is contained in:
Peter Krempa 2015-02-26 10:35:47 +01:00
parent fc56ecd735
commit ef2e6f4089

View File

@ -2172,7 +2172,7 @@ virStorageSourceParseBackingURI(virStorageSourcePtr src,
if (!(tmp = strchr(src->path, '/')) ||
tmp == src->path) {
virReportError(VIR_ERR_XML_ERROR,
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("missing volume name or file name in "
"gluster source path '%s'"), src->path);
goto cleanup;