Skip to content

Commit 33be9af

Browse files
guseggertnhooyr
andauthored
Update err message
Co-authored-by: Anmol Sethi <[email protected]>
1 parent 7fd6136 commit 33be9af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dial.go

+1-1
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)