From 43db6372e250d494a69c9410ca8506b045f68484 Mon Sep 17 00:00:00 2001 From: Gavin Frazar Date: Wed, 13 Nov 2024 12:26:40 -0800 Subject: [PATCH] add info to auto upgrade version fetch error (#48851) --- lib/automaticupgrades/version/basichttp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/automaticupgrades/version/basichttp.go b/lib/automaticupgrades/version/basichttp.go index 849ddc86108df..29bea8e325861 100644 --- a/lib/automaticupgrades/version/basichttp.go +++ b/lib/automaticupgrades/version/basichttp.go @@ -47,7 +47,7 @@ func (b *basicHTTPVersionClient) Get(ctx context.Context) (string, error) { versionURL := b.baseURL.JoinPath(constants.VersionPath) body, err := b.client.GetContent(ctx, *versionURL) if err != nil { - return "", trace.Wrap(err) + return "", trace.Wrap(err, "failed to get version from %s", versionURL) } response := string(body) if response == constants.NoVersion {