Skip to content

Commit

Permalink
fix: split interval function should return 4xx
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Hassan <afayekhassan@gmail.com>
  • Loading branch information
afhassan committed Feb 26, 2025
1 parent fc6c40d commit 4ff04c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/querier/tripperware/queryrange/split_by_interval.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s splitByInterval) Do(ctx context.Context, r tripperware.Request) (tripper
// to line up the boundaries with step.
interval, err := s.interval(ctx, r)
if err != nil {
return nil, httpgrpc.Errorf(http.StatusInternalServerError, err.Error())
return nil, httpgrpc.Errorf(http.StatusBadRequest, err.Error())
}
reqs, err := splitQuery(r, interval)
if err != nil {
Expand Down

0 comments on commit 4ff04c1

Please sign in to comment.