Skip to content

Commit d34dd94

Browse files
author
Chan Kang
committed
using %v instead of %w for compatibility with older versions of go
1 parent d926999 commit d34dd94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h
376376
if proto != "http/1.1" {
377377
return nil, nil, fmt.Errorf(
378378
"websocket: protocol %q was given but is not supported;"+
379-
"sharing tls.Config with net/http Transport can cause this error: %w",
379+
"sharing tls.Config with net/http Transport can cause this error: %v",
380380
proto, err,
381381
)
382382
}

0 commit comments

Comments
 (0)