mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Remove duplicate error messages
Remove duplicate error messages when command fails
This commit is contained in:
		@@ -151,7 +151,6 @@ func newCommand() *cobra.Command {
 | 
				
			|||||||
func main() {
 | 
					func main() {
 | 
				
			||||||
	command := newCommand()
 | 
						command := newCommand()
 | 
				
			||||||
	if err := command.Execute(); err != nil {
 | 
						if err := command.Execute(); err != nil {
 | 
				
			||||||
		fmt.Fprintf(os.Stderr, "error: %v\n", err)
 | 
					 | 
				
			||||||
		os.Exit(1)
 | 
							os.Exit(1)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user