From: Peter Krempa Date: Fri, 13 Dec 2013 17:22:04 +0000 (+0100) Subject: storage: Improve error message when a storage backend is missing X-Git-Tag: CVE-2014-1447-1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=558ffad55efda22856b65da8cd991cb315822bbf;p=thirdparty%2Flibvirt.git storage: Improve error message when a storage backend is missing Include the name of the storage backend in the error message instead of just the number. --- diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index b08d646bb3..19fb1f05e0 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -1146,7 +1146,8 @@ virStorageBackendForType(int type) return backends[i]; virReportError(VIR_ERR_INTERNAL_ERROR, - _("missing backend for pool type %d"), type); + _("missing backend for pool type %d (%s)"), + type, NULLSTR(virStoragePoolTypeToString(type))); return NULL; }