Skip to content

Commit

Permalink
consolidate final error
Browse files Browse the repository at this point in the history
  • Loading branch information
presbrey committed Aug 9, 2024
1 parent 768ccb1 commit eacf565
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions multiproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,7 @@ func (c *Client) do(req *http.Request) (*http.Response, error) {
return resp, nil
}

if lastErr != nil {
return nil, fmt.Errorf("all proxy servers failed, last error: %v", lastErr)
}
return nil, errors.New("all proxy servers are unavailable")
return nil, fmt.Errorf("all proxy servers failed, last error: %v", lastErr)
}

func (c *Client) Do(req *http.Request) (*http.Response, error) {
Expand Down

0 comments on commit eacf565

Please sign in to comment.