Skip to content

Commit 72f03ab

Browse files
authored
fix: split interval function should return 4xx (#6608)
Signed-off-by: Ahmed Hassan <afayekhassan@gmail.com>
1 parent 4704cfd commit 72f03ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/querier/tripperware/queryrange/split_by_interval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (s splitByInterval) Do(ctx context.Context, r tripperware.Request) (tripper
5454
// to line up the boundaries with step.
5555
interval, err := s.interval(ctx, r)
5656
if err != nil {
57-
return nil, httpgrpc.Errorf(http.StatusInternalServerError, err.Error())
57+
return nil, httpgrpc.Errorf(http.StatusBadRequest, err.Error())
5858
}
5959
reqs, err := splitQuery(r, interval)
6060
if err != nil {

0 commit comments

Comments
 (0)