Skip to content

Commit

Permalink
Fix outputting twice the docker stack rm error message
Browse files Browse the repository at this point in the history
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
  • Loading branch information
silvin-lubecki committed May 30, 2018
1 parent 66059a9 commit 8c64150
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/command/stack/kubernetes/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ func RunRemove(dockerCli *KubeCli, opts options.Remove) error {
fmt.Fprintf(dockerCli.Out(), "Removing stack: %s\n", stack)
err := stacks.Delete(stack)
if err != nil {
fmt.Fprintf(dockerCli.Out(), "Failed to remove stack %s: %s\n", stack, err)
return err
return fmt.Errorf("Failed to remove stack %s: %s", stack, err)
}
}
return nil
Expand Down

0 comments on commit 8c64150

Please sign in to comment.