Skip to content

Commit

Permalink
Tweak auth related 'bad handshake' error message
Browse files Browse the repository at this point in the history
  • Loading branch information
morestatic committed Jul 11, 2022
1 parent 6812d95 commit f8c7945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/utils/wsClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func NewWsClient(ctx context.Context, wsURLBuilder WsURLBuilder, reqHeader http.
conn, _, err := websocket.DefaultDialer.Dial(wsURL, reqHeader)
if err != nil {
if strings.Contains(err.Error(), "bad handshake") {
return nil, fmt.Errorf("%v. This error can be caused by an outdated server version. "+
"Upgrade you server to 0.8.1 or newer", err)
return nil, fmt.Errorf("%v. This error can be caused by missing client auth data or an outdated server version. "+
"Upgrade your server to 0.8.1 or newer", err)
}
return nil, err
}
Expand Down

0 comments on commit f8c7945

Please sign in to comment.