From 9be14a832081d8dc739d41965d05bf5449166887 Mon Sep 17 00:00:00 2001 From: Gevorg Gevorgyan <34717001+gggevorgyan@users.noreply.github.com> Date: Wed, 3 Jan 2024 19:46:03 +0400 Subject: [PATCH] Update reader.go fix: Changed error message per review suggestion. --- tsdb/engine/tsm1/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/engine/tsm1/reader.go b/tsdb/engine/tsm1/reader.go index 306e7b21f34..590d0dc7cb4 100644 --- a/tsdb/engine/tsm1/reader.go +++ b/tsdb/engine/tsm1/reader.go @@ -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