mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh-pool: Improve error message in cmdPoolList
Explicitly let the user know about the unknown pool type.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user