fix: update better error handling (#5188)
This commit is contained in:
+1
-1
@@ -437,7 +437,7 @@ func doUpdate(customReleaseURL, sha256Hex string, latestReleaseTime time.Time, r
|
||||
}
|
||||
|
||||
u, e := url.Parse(getDownloadURL(customReleaseURL, releaseTag))
|
||||
if err != nil {
|
||||
if e != nil {
|
||||
return updateStatusMsg, probe.NewError(e)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user