mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Improve error reporting
Follow-up of changes introduced in commit 72c922668f
This commit is contained in:
parent
5b33534dcf
commit
397240aebe
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user