mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Rename CheckError to LogErrorAndExit
Signed-off-by: glefloch <glfloch@gmail.com>
This commit is contained in:
@@ -55,13 +55,13 @@ func main() {
|
||||
// before proceeding with fetching the latest version
|
||||
cfg, err := config.New()
|
||||
if err != nil {
|
||||
util.CheckError(err, "")
|
||||
util.LogErrorAndExit(err, "")
|
||||
}
|
||||
if cfg.GetUpdateNotification() {
|
||||
updateInfo := make(chan string)
|
||||
go version.GetLatestReleaseInfo(updateInfo)
|
||||
|
||||
util.CheckError(root.Execute(), "")
|
||||
util.LogErrorAndExit(root.Execute(), "")
|
||||
select {
|
||||
case message := <-updateInfo:
|
||||
fmt.Println(message)
|
||||
@@ -69,7 +69,7 @@ func main() {
|
||||
glog.V(4).Info("Could not get the latest release information in time. Never mind, exiting gracefully :)")
|
||||
}
|
||||
} else {
|
||||
util.CheckError(root.Execute(), "")
|
||||
util.LogErrorAndExit(root.Execute(), "")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user