Skip to content

Commit 8be82d7

Browse files
alepane21endigma
andauthored
chore: add details to initializing log error (#2353)
Co-authored-by: Jesse <[email protected]>
1 parent 1ffdc84 commit 8be82d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/core/websocket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ func (h *WebSocketConnectionHandler) Initialize() (err error) {
11441144
h.logger.Debug("Websocket connection", zap.String("protocol", h.protocol.Subprotocol()))
11451145
h.initialPayload, err = h.protocol.Initialize()
11461146
if err != nil {
1147-
_ = h.requestError(fmt.Errorf("error initializing session"))
1147+
_ = h.requestError(fmt.Errorf("error initializing session: %w", err))
11481148
return err
11491149
}
11501150

0 commit comments

Comments
 (0)