mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
Improve error reporting
This commit is contained in:
@@ -106,11 +106,9 @@ Find more information at https://github.com/GoogleCloudPlatform/kubernetes.`,
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: remove this function and references to it-- errors it prints are
|
||||
// very unhelpful because file/line number are wrong.
|
||||
func checkErr(err error) {
|
||||
if err != nil {
|
||||
glog.Fatalf("%v", err)
|
||||
glog.FatalDepth(1, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user