From d34dd940eeb29b6f4d21d3ab9148893b4019afd1 Mon Sep 17 00:00:00 2001 From: Chan Kang Date: Sun, 19 Jun 2022 15:19:18 -0400 Subject: [PATCH] using %v instead of %w for compatibility with older versions of go --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index f79ac98..7cbc7f5 100644 --- a/client.go +++ b/client.go @@ -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, ) }