mirror of
https://github.com/prometheus/prometheus
synced 2026-04-30 23:11:34 +08:00
update error message in extractTimeRange (#5179)
Update error message in the extractTimeRange function to match function's logic Signed-off-by: zhulongcheng <zhulongcheng.me@gmail.com>
This commit is contained in:
committed by
Brian Brazil
parent
e158c53fa9
commit
a75f8a8e05
@@ -101,7 +101,7 @@ func extractTimeRange(min, max *time.Time) (mint, maxt time.Time, err error) {
|
||||
maxt = *max
|
||||
}
|
||||
if mint.After(maxt) {
|
||||
return mint, maxt, errors.Errorf("min time must be before max time")
|
||||
return mint, maxt, errors.Errorf("min time must be before or equal to max time")
|
||||
}
|
||||
return mint, maxt, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user