commit ab149deebeab74ff9d841e103ae5df8e4b6379d7
Author: sin <[email protected]>
Date:   Fri Jan 30 13:59:16 2015 +0000

    Use errstr as filled by strtonum() because it is more informative

diff --git a/libutil/strtonum.c b/libutil/strtonum.c
index 18eb8aa..0779174 100644
--- a/libutil/strtonum.c
+++ b/libutil/strtonum.c
@@ -74,6 +74,6 @@ estrtonum(const char *numstr, long long minval, long long 
maxval)
 
        ll = strtonum(numstr, minval, maxval, &errstr);
        if (errstr)
-               eprintf("strtonum %s: invalid value\n", numstr);
+               eprintf("strtonum %s: %s\n", numstr, errstr);
        return ll;
 }

Reply via email to