From 28036c14b88e42d5f2454d261da67f9032451cc8 Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Tue, 24 Oct 2023 09:00:53 +0000 Subject: [PATCH] resolved comments Signed-off-by: Xiaoxuan Wang --- content/oci/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/oci/storage.go b/content/oci/storage.go index ab0a4678..efb9f3d8 100644 --- a/content/oci/storage.go +++ b/content/oci/storage.go @@ -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 }