From: Ján Tomko Date: Tue, 12 Feb 2019 06:58:49 +0000 (+0100) Subject: virsh: do not report error on zero filesystems in cmdDomFSInfo X-Git-Tag: v5.1.0-rc1~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=066d91ec796994f7d382c59434d1557d87e8d6ba;p=thirdparty%2Flibvirt.git virsh: do not report error on zero filesystems in cmdDomFSInfo Use vshPrintExtra to report this message. It is a human-readable explanation rather than an error. Also, it is a very special system that runs with no filesystems. Signed-off-by: Ján Tomko --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index cb2da8eb5b..d21e77ce75 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -13955,7 +13955,7 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd) if (ninfos == 0) { ret = true; - vshError(ctl, _("No filesystems are mounted in the domain")); + vshPrintExtra(ctl, _("No filesystems are mounted in the domain")); goto cleanup; }