Skip to content

Commit

Permalink
fix: Changed error message per review suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
gggevorgyan authored and Gevorg Gevorgyan committed Feb 19, 2024
1 parent f456072 commit 5ee614f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsdb/engine/tsm1/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ func (d *indirectIndex) UnmarshalBinary(b []byte) error {
count := int32(binary.BigEndian.Uint16(b[i : i+indexCountSize]))

if count <= 0 {
return fmt.Errorf("indirectIndex: the count should have >0 value")
return fmt.Errorf("invalid index %d; count must be greater than 0", count)
}
i += indexCountSize

Expand Down

0 comments on commit 5ee614f

Please sign in to comment.