fix main: Correctly print kubectl errors
This commit is contained in:
parent
3728d0ae2e
commit
5bc6370af2
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -180,6 +180,6 @@ func runKubectlWithResources(c *context.Context, kubectlArgs *[]string, resource
|
||||||
}
|
}
|
||||||
|
|
||||||
func failWithKubectlError(err error) {
|
func failWithKubectlError(err error) {
|
||||||
fmt.Errorf("Kubectl error: %v\n", err)
|
fmt.Fprintf(os.Stderr, "Kubectl error: %v\n", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue