virsh-pool: Improve error message in cmdPoolList

Explicitly let the user know about the unknown pool type.
This commit is contained in:
Peter Krempa 2013-08-15 18:27:37 +02:00
parent d64af6ce3c
commit 5b5da08226

View File

@ -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;
}