From 0b4d69bc57c1ba816a8a9aa3b792926a48905f8f Mon Sep 17 00:00:00 2001 From: Burkov Egor Date: Thu, 10 Apr 2025 18:50:18 +0300 Subject: [PATCH] fix: update better error handling (#5188) --- cmd/update-main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/update-main.go b/cmd/update-main.go index b134f497..d294459e 100644 --- a/cmd/update-main.go +++ b/cmd/update-main.go @@ -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) }