Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
  • Loading branch information
wangxiaoxuan273 committed Oct 24, 2023
1 parent fb01267 commit 28036c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/oci/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (s *Storage) Delete(ctx context.Context, target ocispec.Descriptor) error {
err = os.Remove(targetPath)
if err != nil {
if errors.Is(err, fs.ErrNotExist) {
return fmt.Errorf("target to delete is not present in the storage: %w", errdef.ErrNotFound)
return fmt.Errorf("%s: %s: %w", target.Digest, target.MediaType, errdef.ErrNotFound)
}
return err
}
Expand Down

0 comments on commit 28036c1

Please sign in to comment.