fixed error log that would cause two log lines to run into each other. This can be reproduced by running local-up-cluster.sh on osx.

found source of log issue and it was further upstream at the hyperkube level.

removed extra \n items i added to make things clearer.
This commit is contained in:
Alejandro Escobar
2017-01-09 09:37:27 -08:00
parent de59ede6b2
commit 6a4f8b54f7
2 changed files with 9 additions and 9 deletions

View File

@@ -188,7 +188,7 @@ func (hk *HyperKube) Run(args []string) error {
func (hk *HyperKube) RunToExit(args []string) {
err := hk.Run(args)
if err != nil {
fmt.Fprint(os.Stderr, err.Error())
fmt.Fprintf(os.Stderr, "Error: %v\n", err.Error())
os.Exit(1)
}
os.Exit(0)