mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 10:52:22 +00:00
virsh-pool: Improve error message in cmdPoolList
Explicitly let the user know about the unknown pool type.
This commit is contained in:
parent
d64af6ce3c
commit
5b5da08226
@ -1000,7 +1000,7 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
|
||||
|
||||
for (i = 0; i < npoolTypes; i++) {
|
||||
if ((poolType = virStoragePoolTypeFromString(poolTypes[i])) < 0) {
|
||||
vshError(ctl, "%s", _("Invalid pool type"));
|
||||
vshError(ctl, _("Invalid pool type '%s'"), poolTypes[i]);
|
||||
virStringFreeList(poolTypes);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user