mirror of
https://github.com/gotify/server.git
synced 2026-05-06 21:42:07 +08:00
Log web socket errors
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user