From 5c5965f2fdbb7f23b75eeff432040e076ac152cf Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Wed, 6 Mar 2019 20:24:13 +0100 Subject: [PATCH] Log web socket errors --- api/stream/stream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/stream/stream.go b/api/stream/stream.go index a43d224..dd225fe 100644 --- a/api/stream/stream.go +++ b/api/stream/stream.go @@ -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 }