using %v instead of %w for compatibility with older versions of go

This commit is contained in:
Chan Kang 2022-06-19 15:19:18 -04:00
parent d926999018
commit d34dd940ee
1 changed files with 1 additions and 1 deletions

View File

@ -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,
)
}