Skip to content
Snippets Groups Projects
Unverified Commit 2aa737da authored by Massimiliano Adamo's avatar Massimiliano Adamo
Browse files

minor change

parent bf8c09bd
No related branches found
No related tags found
No related merge requests found
...@@ -81,13 +81,13 @@ func appExit(status int) { ...@@ -81,13 +81,13 @@ func appExit(status int) {
func getUpstreamVersion(url string) string { func getUpstreamVersion(url string) string {
resp, err := httpClient.Get(url) resp, err := httpClient.Get(url)
if err != nil { if err != nil {
fmt.Printf("Request to Artifactory failed: %v\n", err) fmt.Printf("%v Request to Artifactory failed: %v\n", errMsg, err)
appExit(255) appExit(255)
} }
defer resp.Body.Close() defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) body, err := ioutil.ReadAll(resp.Body)
if err != nil { if err != nil {
fmt.Printf("Reading body from Artifactory failed: %v\n", err) fmt.Printf("%v Reading body from Artifactory failed: %v\n", errMsg, err)
appExit(255) appExit(255)
} }
return string(body) return string(body)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment