Commit a8c68e33 by bergquist

feat(cli): add more logging for failed install

parent 903d1b77
......@@ -126,8 +126,8 @@ func downloadFile(pluginName, filePath, url string) (err error) {
defer func() {
if r := recover(); r != nil {
retryCount++
if retryCount == 1 {
log.Debug("\nFailed downloading. Will retry once.\n")
if retryCount < 3 {
fmt.Printf("\nFailed downloading. Will retry once.\n%v\n", r)
downloadFile(pluginName, filePath, url)
} else {
panic(r)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment