From 066d91ec796994f7d382c59434d1557d87e8d6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 12 Feb 2019 07:58:49 +0100 Subject: [PATCH] virsh: do not report error on zero filesystems in cmdDomFSInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tools/virsh-domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }