Skip to content

Commit

Permalink
OCPBUGS-8216: fix: remove an unecessary error message (#579)
Browse files Browse the repository at this point in the history
There are some scenarios where an error is expected so it should not print the error message otherwise it will confuse the user.
  • Loading branch information
aguidirh authored Mar 13, 2023
1 parent 175f63a commit e603f8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ func ParseReference(ref string) (TypedImageReference, error) {
// in case of TargetName and TargetTag replacing the original name ,
// the returned path will not exist on disk
manifest, err := getManifest(context.Background(), ref)
if err != nil {
fmt.Printf("%v", err)
} else {
if err == nil {
dst.ID = string(manifest.ConfigInfo().Digest)
}
return TypedImageReference{Ref: dst, Type: dstType, OCIFBCPath: ref}, nil
Expand Down

0 comments on commit e603f8d

Please sign in to comment.