Skip to content

Commit

Permalink
fix error wrap to make IgnoreNotFound work when fetching blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
honganan committed Jul 25, 2024
1 parent 2dfc13b commit fd4fbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/stores/shipper/bloomshipper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func (b *BloomClient) GetBlock(ctx context.Context, ref BlockRef) (BlockDirector

rc, _, err := b.client.GetObject(ctx, key)
if err != nil {
return BlockDirectory{}, fmt.Errorf("failed to get block file %s: %w", key, err)
return BlockDirectory{}, errors.Wrap(err, fmt.Sprintf("failed to get block file %s", key))
}
defer rc.Close()

Expand Down

0 comments on commit fd4fbd8

Please sign in to comment.