fix(main): Use 'app.Fatalf' for fatal kubectl errors
This commit is contained in:
		
							parent
							
								
									b8c3264019
								
							
						
					
					
						commit
						ea297abe1d
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		
							
								
								
									
										3
									
								
								main.go
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								main.go
									
										
									
									
									
								
							| 
						 | 
					@ -234,6 +234,5 @@ func runKubectlWithResources(c *context.Context, kubectlArgs *[]string, resource
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func failWithKubectlError(err error) {
 | 
					func failWithKubectlError(err error) {
 | 
				
			||||||
	fmt.Fprintf(os.Stderr, "Kubectl error: %v\n", err)
 | 
						app.Fatalf("Kubectl error: %v\n", err)
 | 
				
			||||||
	os.Exit(1)
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue