Use errstr as filled by strtonum() because it is more informative
This commit is contained in:
parent
e5c1f0f372
commit
ab149deebe
|
@ -74,6 +74,6 @@ estrtonum(const char *numstr, long long minval, long long maxval)
|
||||||
|
|
||||||
ll = strtonum(numstr, minval, maxval, &errstr);
|
ll = strtonum(numstr, minval, maxval, &errstr);
|
||||||
if (errstr)
|
if (errstr)
|
||||||
eprintf("strtonum %s: invalid value\n", numstr);
|
eprintf("strtonum %s: %s\n", numstr, errstr);
|
||||||
return ll;
|
return ll;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user