Rectify kubectl error output

This commit is contained in:
bindata-mockuser
2016-08-08 20:24:01 +02:00
committed by Dr. Stefan Schimanski
parent ce7f003f57
commit 6dcb0c9130
7 changed files with 97 additions and 107 deletions

View File

@@ -46,8 +46,8 @@ import (
)
func initTestErrorHandler(t *testing.T) {
cmdutil.BehaviorOnFatal(func(str string) {
t.Errorf("Error running command: %s", str)
cmdutil.BehaviorOnFatal(func(str string, code int) {
t.Errorf("Error running command (exit code %d): %s", code, str)
})
}