Correctly format error message (#10669)

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
This commit is contained in:
Łukasz Mierzwa 2022-05-05 23:42:31 +01:00 committed by GitHub
parent 41630b8e88
commit 88f9b248b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -656,7 +656,7 @@ func (cdm *ChunkDiskMapper) Chunk(ref ChunkDiskMapperRef) (chunkenc.Chunk, error
return nil, &CorruptionErr{ return nil, &CorruptionErr{
Dir: cdm.dir.Name(), Dir: cdm.dir.Name(),
FileIndex: sgmIndex, 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),
} }
} }