Updating methods to return error rather than using glog.Fatalf

This commit is contained in:
nikhiljindal
2016-02-03 14:26:11 -08:00
parent 2aa28c6553
commit c7beb9078c
16 changed files with 128 additions and 38 deletions

View File

@@ -18,8 +18,12 @@ package main
import (
"k8s.io/kubernetes/examples/apiserver"
"github.com/golang/glog"
)
func main() {
apiserver.Run()
if err := apiserver.Run(); err != nil {
glog.Fatalf("Error in bringing up the server: %v", err)
}
}