mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 12:48:51 +00:00
Improve error reporting
Follow-up of changes introduced in commit 72c922668f
This commit is contained in:
@@ -31,7 +31,7 @@ const usage = "usage: enscope specFilename configFilename"
|
||||
|
||||
func checkErr(err error) {
|
||||
if err != nil {
|
||||
glog.Fatalf("%v", err)
|
||||
glog.FatalDepth(1, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -56,7 +56,7 @@ type SimpleService struct {
|
||||
|
||||
func checkErr(err error) {
|
||||
if err != nil {
|
||||
glog.Fatalf("%v", err)
|
||||
glog.FatalDepth(1, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -81,7 +81,7 @@ type ServiceMap map[string]HierarchicalService
|
||||
|
||||
func checkErr(err error) {
|
||||
if err != nil {
|
||||
glog.Fatalf("%v", err)
|
||||
glog.FatalDepth(1, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user