diff --git a/lib/httputils/duration.go b/lib/httputils/duration.go index 4fdd05c4a..8a5e3887f 100644 --- a/lib/httputils/duration.go +++ b/lib/httputils/duration.go @@ -29,7 +29,7 @@ func GetDuration(r *http.Request, argKey string, defaultValue int64) (int64, err } msecs := int64(secs * 1e3) if msecs <= 0 || msecs > maxDurationMsecs { - return 0, fmt.Errorf("%q=%dms is out of allowed range [%d ... %d]", argKey, msecs, 0, int64(maxDurationMsecs)) + return 0, fmt.Errorf("%q=%dms is out of allowed range [%d ... %d]", argKey, msecs, 1, int64(maxDurationMsecs)) } return msecs, nil }