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

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



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


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