Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesnikovae committed Feb 3, 2025
1 parent 394dab0 commit 45192ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/frontend/read_path/query_frontend/query_frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func (q *QueryFrontend) Query(
}

blocks, err := q.QueryMetadata(ctx, req)
if err != nil {
return nil, err
}
if len(blocks) == 0 {
return new(queryv1.QueryResponse), nil
}
Expand Down

0 comments on commit 45192ea

Please sign in to comment.