[PATCH v3 1/5] virsh: Use standard error message in vshCommandOptTimeoutToMs().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I missed this in the first time around, thanks Michal for noticing.
---
 tools/virsh.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 1005ba8..865948f 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -1869,7 +1869,9 @@ vshCommandOptTimeoutToMs(vshControl *ctl, const vshCmd *cmd, int *timeout)
     int rv = vshCommandOptInt(cmd, "timeout", timeout);
 
     if (rv < 0 || (rv > 0 && *timeout < 1)) {
-        vshError(ctl, "%s", _("invalid timeout"));
+        vshError(ctl,
+                 _("Numeric value for <%s> option is malformed or out of range"),
+                 "timeout");
         return -1;
     }
     if (rv > 0) {
-- 
2.1.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]