Skip to content

Commit

Permalink
using %v instead of %w for compatibility with older versions of go
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan Kang committed Jun 21, 2022
1 parent d926999 commit d34dd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h
if proto != "http/1.1" {
return nil, nil, fmt.Errorf(
"websocket: protocol %q was given but is not supported;"+
"sharing tls.Config with net/http Transport can cause this error: %w",
"sharing tls.Config with net/http Transport can cause this error: %v",
proto, err,
)
}
Expand Down

0 comments on commit d34dd94

Please sign in to comment.