Improve error reporting

This commit is contained in:
Daniel Smith
2014-11-12 13:31:24 -08:00
parent 4e1ab8045b
commit 72c922668f
2 changed files with 6 additions and 4 deletions

View File

@@ -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)
}
}