Log web socket errors

This commit is contained in:
Jannis Mattheis 2019-03-06 20:24:13 +01:00
parent 4814fe8d43
commit 5c5965f2fd
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ func (a *API) register(client *client) {
func (a *API) Handle(ctx *gin.Context) {
conn, err := a.upgrader.Upgrade(ctx.Writer, ctx.Request, nil)
if err != nil {
ctx.Error(err)
return
}