We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ffb00 commit a0658aaCopy full SHA for a0658aa
cmd/crane/cmd/push.go
@@ -71,7 +71,9 @@ func NewCmdPush(options *[]crane.Option) *cobra.Command {
71
72
digest := ref.Context().Digest(h.String())
73
if imageRefs != "" {
74
- return os.WriteFile(imageRefs, []byte(digest.String()), 0600)
+ if err := os.WriteFile(imageRefs, []byte(digest.String()), 0600); err != nil {
75
+ return fmt.Errorf("failed to write image refs to %s: %w", imageRefs, err)
76
+ }
77
}
78
79
// Print the digest of the pushed image to stdout to facilitate command composition.
0 commit comments