From 88f9b248b45a14f76a6b2353c4addbd1e2026815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 5 May 2022 23:42:31 +0100 Subject: [PATCH] Correctly format error message (#10669) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ɓukasz Mierzwa --- tsdb/chunks/head_chunks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/chunks/head_chunks.go b/tsdb/chunks/head_chunks.go index c4b784bea..edd7dd541 100644 --- a/tsdb/chunks/head_chunks.go +++ b/tsdb/chunks/head_chunks.go @@ -656,7 +656,7 @@ func (cdm *ChunkDiskMapper) Chunk(ref ChunkDiskMapperRef) (chunkenc.Chunk, error return nil, &CorruptionErr{ Dir: cdm.dir.Name(), FileIndex: sgmIndex, - Err: errors.New("head chunk file index %d does not exist on disk"), + Err: errors.Errorf("head chunk file index %d does not exist on disk", sgmIndex), } }