forked from mirror/websocket
wrapping the error in %w
This commit is contained in:
parent
fc45505c46
commit
d926999018
|
@ -376,8 +376,8 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h
|
||||||
if proto != "http/1.1" {
|
if proto != "http/1.1" {
|
||||||
return nil, nil, fmt.Errorf(
|
return nil, nil, fmt.Errorf(
|
||||||
"websocket: protocol %q was given but is not supported;"+
|
"websocket: protocol %q was given but is not supported;"+
|
||||||
"sharing tls.Config with net/http Transport can cause this error",
|
"sharing tls.Config with net/http Transport can cause this error: %w",
|
||||||
proto,
|
proto, err,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue