Skip to content

Commit

Permalink
Add a bit more errors
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
  • Loading branch information
dimitarvdimitrov committed May 4, 2023
1 parent 543696f commit 4cf1925
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/storegateway/partitioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ func (r *uvarintSequenceReader) ReadByte() (byte, error) {
// If there are read bytes we must ignore any error returned, even EOF.
return r.b[0], nil
}
if n > 1 {
return 0, errors.Newf("read more than one bytes (%d)", n)
}
return 0, err
}

Expand Down

0 comments on commit 4cf1925

Please sign in to comment.