Skip to content

Commit

Permalink
fix: Don't swallow errors when accepting websockets (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed May 24, 2024
1 parent e777ee1 commit 03eae96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webui/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func acceptWebsocket(ctx *gin.Context) (*websocket.Conn, error) {

conn, err := websocket.Accept(ctx.Writer, ctx.Request, acceptOptions)
if err != nil {
return nil, nil
return nil, err
}

return conn, err
Expand Down

0 comments on commit 03eae96

Please sign in to comment.