Skip to content

Commit

Permalink
Improve upload archive progress bar
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Nov 28, 2024
1 parent 9026fac commit e62f59c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http/httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ func (jc *HttpClient) Send(method, url string, content []byte, followRedirect, c
resp, respBody, redirectUrl, err = jc.doRequest(req, content, followRedirect, closeBody, httpClientsDetails)
if err != nil {
if strings.Contains(err.Error(), "unsupported protocol scheme") {
err = fmt.Errorf("invalid URL %q. Please ensure the URL includes a valid scheme like http:// or https://: %w", url, err)
// 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 true, err
}
Expand Down

0 comments on commit e62f59c

Please sign in to comment.