diff options
Diffstat (limited to 'api/websocket.go')
-rw-r--r-- | api/websocket.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/websocket.go b/api/websocket.go index 6f53023db..6fd79a2dd 100644 --- a/api/websocket.go +++ b/api/websocket.go @@ -30,7 +30,7 @@ func connect(c *Context, w http.ResponseWriter, r *http.Request) { ws, err := upgrader.Upgrade(w, r, nil) if err != nil { l4g.Error(utils.T("api.web_socket.connect.error"), err) - c.Err = model.NewLocAppError("connect", "api.web_socket.connect.upgrade.app_error", nil, "") + c.Err = model.NewAppError("connect", "api.web_socket.connect.upgrade.app_error", nil, "", http.StatusInternalServerError) return } |