revert handling

pull/7498/head
Medya Gh 2020-04-08 15:37:55 -07:00
parent 3d8bb44fdb
commit 0109af5b77
1 changed files with 2 additions and 8 deletions

View File

@ -19,7 +19,6 @@ package node
import (
"os"
"runtime"
"strings"
"github.com/golang/glog"
"github.com/spf13/viper"
@ -112,13 +111,8 @@ func beginDownloadKicArtifacts(g *errgroup.Group) {
// WaitDownloadKicArtifacts blocks until the required artifacts for KIC are downloaded.
func waitDownloadKicArtifacts(g *errgroup.Group) {
if err := g.Wait(); err != nil {
if strings.Contains(err.Error(), "Cannot connect to the Docker daemon") {
out.WarningT("Failed to connect to docker daemon : {{.error}}", out.V{"error": err.Error()})
exit.UsageT("Please make sure Docker service is running.")
} else {
exit.WithError("Failed to download kic base image", err)
}
glog.Errorln("Error downloading kic artifacts: ", err)
return
}
glog.Info("Successfully downloaded all kic artifacts")
}