From: Peter Krempa Date: Thu, 15 Aug 2013 16:27:37 +0000 (+0200) Subject: virsh-pool: Improve error message in cmdPoolList X-Git-Tag: v1.1.2-rc1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b5da082267c425f7e5a16bd175788042411ce2b;p=thirdparty%2Flibvirt.git virsh-pool: Improve error message in cmdPoolList Explicitly let the user know about the unknown pool type. --- diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c index b8fc8d71c7..592b81ff57 100644 --- a/tools/virsh-pool.c +++ b/tools/virsh-pool.c @@ -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; }