mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
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.
This commit is contained in:
parent
af38f83074
commit
558ffad55e
@ -1146,7 +1146,8 @@ virStorageBackendForType(int type)
|
|||||||
return backends[i];
|
return backends[i];
|
||||||
|
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user