diff --git a/cobra.go b/cobra.go index 962b314412..b01774f04a 100644 --- a/cobra.go +++ b/cobra.go @@ -30,7 +30,7 @@ func SetupRootCommand(rootCmd *cobra.Command) { // docker/docker/cli error messages func FlagErrorFunc(cmd *cobra.Command, err error) error { if err == nil { - return err + return nil } usage := ""