From e4e2168a3df1b76a47a0f38f59cd0c0eaee4451e Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Thu, 28 Nov 2024 17:02:38 +0200 Subject: [PATCH] Improve upload archive progress bar Signed-off-by: Michael Sverdlov --- http/httpclient/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/httpclient/client.go b/http/httpclient/client.go index a3265db1b..93800932e 100644 --- a/http/httpclient/client.go +++ b/http/httpclient/client.go @@ -135,7 +135,7 @@ func (jc *HttpClient) Send(method, url string, content []byte, followRedirect, c if err != nil { if strings.Contains(err.Error(), "unsupported protocol scheme") { // Wrong URL, so no need to retry - return false, fmt.Errorf("invalid URL %q. Please ensure the URL includes a valid scheme like http:// or https://: %w", url, err) + return false, fmt.Errorf("%w\nThe recieved error indicats an invalid URL: %q, Please ensure the URL includes a valid scheme like 'http://' or 'https://'.", err, url) } return true, err }