Skip to content

Commit

Permalink
fix: added context to error (#620)
Browse files Browse the repository at this point in the history
Signed-off-by: Griffin <[email protected]>
Co-authored-by: Ashna Mehrotra <[email protected]>
  • Loading branch information
prakrit55 and ashnamehrotra authored May 13, 2024
1 parent 2ee07aa commit e280d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/patch/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func patchWithContext(ctx context.Context, ch chan error, image, reportFile, pat
}
taggedName, ok := imageName.(reference.Tagged)
if !ok {
err := errors.New("unexpected: TagNameOnly did not create Tagged ref")
err := errors.New("Unrecognized docker repository format. Please use one of the following: image-registry/imagename:imageversion or image-registry/imagename:imageversion@indexdigest")
log.Error(err)
return err
}
Expand Down

0 comments on commit e280d5e

Please sign in to comment.