Skip to content

Commit bedc4c4

Browse files
authored
fix: fix 404 error message for manifestStore.FetchReference (#331)
Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
1 parent 2b4088e commit bedc4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

registry/remote/repository.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ func (s *manifestStore) FetchReference(ctx context.Context, reference string) (d
860860
}
861861
return desc, resp.Body, nil
862862
case http.StatusNotFound:
863-
return ocispec.Descriptor{}, nil, fmt.Errorf("%s: %w", ref.Reference, errdef.ErrNotFound)
863+
return ocispec.Descriptor{}, nil, fmt.Errorf("%s: %w", ref, errdef.ErrNotFound)
864864
default:
865865
return ocispec.Descriptor{}, nil, errutil.ParseErrorResponse(resp)
866866
}

0 commit comments

Comments
 (0)