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

Commit 0a19726

Browse files
Merge pull request #221 from Dimrok/feature/fix-save
Do not show success message if the save operation failed
2 parents 879302e + eed12e2 commit 0a19726

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)