Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit eed12e2

Browse files
author
Antony MECHIN
committed
cmd.save: Output stdout only if the command succeeded.
Signed-off-by: Antony MECHIN <antony.mechin@docker.com>
1 parent 4e7c8e0 commit eed12e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/docker-app/save.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func saveCmd() *cobra.Command {
2121
Args: cli.RequiresMaxArgs(1),
2222
RunE: func(cmd *cobra.Command, args []string) error {
2323
imageName, err := packager.Save(firstOrEmpty(args), opts.namespace, opts.tag)
24-
if imageName != "" {
24+
if imageName != "" && err == nil {
2525
fmt.Printf("Saved application as image: %s\n", imageName)
2626
}
2727
return err

0 commit comments

Comments
 (0)