mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Rectify kubectl error output
This commit is contained in:
committed by
Dr. Stefan Schimanski
parent
ce7f003f57
commit
6dcb0c9130
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user