Skip to content

Commit

Permalink
Revert "using %v instead of %w for compatibility with older versions …
Browse files Browse the repository at this point in the history
…of go"

This reverts commit d34dd94.
  • Loading branch information
Chan Kang committed Jun 21, 2022
1 parent d34dd94 commit 0cd10fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
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: %v",
"sharing tls.Config with net/http Transport can cause this error: %w",
proto, err,
)
}
Expand Down

0 comments on commit 0cd10fc

Please sign in to comment.