From a75f8a8e0544e0866270a7729538dc729f390604 Mon Sep 17 00:00:00 2001 From: zhulongcheng Date: Sun, 3 Feb 2019 17:29:23 +0800 Subject: [PATCH] update error message in extractTimeRange (#5179) Update error message in the extractTimeRange function to match function's logic Signed-off-by: zhulongcheng --- web/api/v2/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/v2/api.go b/web/api/v2/api.go index a5b9340028..2e58ea862b 100644 --- a/web/api/v2/api.go +++ b/web/api/v2/api.go @@ -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 }