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

This commit is contained in:
sin 2015-01-30 13:59:16 +00:00
parent e5c1f0f372
commit ab149deebe

View File

@ -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;
}