Rename CheckError to LogErrorAndExit

Signed-off-by: glefloch <glfloch@gmail.com>
This commit is contained in:
glefloch
2019-01-04 14:20:26 +00:00
parent eec9a26ec4
commit 5cff1a1f63
26 changed files with 116 additions and 116 deletions

View File

@@ -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(), "")
}
}