From 7c37086dd68c9a33df43ac681a593fb8827d2b3d Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Mon, 27 Sep 2021 17:12:31 +0200 Subject: [PATCH] Handle lack of internet --- cmd/headscale/headscale.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/headscale/headscale.go b/cmd/headscale/headscale.go index 07cfa8f4..bc8f515b 100644 --- a/cmd/headscale/headscale.go +++ b/cmd/headscale/headscale.go @@ -46,8 +46,8 @@ func main() { } if cli.Version != "dev" { - res, _ := latest.Check(githubTag, cli.Version) - if res.Outdated { + res, err := latest.Check(githubTag, cli.Version) + if err == nil && res.Outdated { fmt.Printf("An updated version of Headscale has been found (%s vs. your current %s). Check it out https://github.com/juanfont/headscale/releases\n", res.Current, cli.Version) }