Skip to content

Commit 54809d6

Browse files
guseggertnhooyr
andcommitted
Update err message when dial ctx is nil
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
1 parent 7fd6136 commit 54809d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dial.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func handshakeRequest(ctx context.Context, urls string, opts *DialOptions, copts
159159

160160
req, err := http.NewRequestWithContext(ctx, "GET", u.String(), nil)
161161
if err != nil {
162-
return nil, fmt.Errorf("failed to build HTTP request: %w", err)
162+
return nil, fmt.Errorf("http.NewRequestWithContext failed: %w", err)
163163
}
164164
req.Header = opts.HTTPHeader.Clone()
165165
req.Header.Set("Connection", "Upgrade")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy