]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh-pool: Improve error message in cmdPoolList
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Aug 2013 16:27:37 +0000 (18:27 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 20 Aug 2013 15:55:08 +0000 (17:55 +0200)
Explicitly let the user know about the unknown pool type.

tools/virsh-pool.c

index b8fc8d71c75a5fcab5047349b726cf5fddd121e4..592b81ff57d83bb238a7813c84800e609fe089f2 100644 (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;
             }