Skip to content

Commit

Permalink
make s3 deleteKey error messages more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Nov 15, 2023
1 parent d44b0d8 commit f9a7894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ func (s *S3) deleteKey(ctx context.Context, key string) error {
if s.versioning {
objVersion, err := s.getObjectVersion(ctx, key)
if err != nil {
return errors.Wrapf(err, "deleteKey, obtaining object version %+v", params)
return errors.Wrapf(err, "deleteKey, obtaining object version bucket: %s key: %s", s.Config.Bucket, key)
}
params.VersionId = objVersion
}
if _, err := s.client.DeleteObject(ctx, params); err != nil {
return errors.Wrapf(err, "deleteKey, deleting object %+v", params)
return errors.Wrapf(err, "deleteKey, deleting object bucket: %s key: %s version: %v", s.Config.Bucket, key, params.VersionId)
}
return nil
}
Expand Down

0 comments on commit f9a7894

Please sign in to comment.