From ab149deebeab74ff9d841e103ae5df8e4b6379d7 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 30 Jan 2015 13:59:16 +0000 Subject: [PATCH] Use errstr as filled by strtonum() because it is more informative --- libutil/strtonum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }