mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-24 14:37:05 +02:00
change dissconnect messages to keys for i18n
This commit is contained in:
parent
a04ac47812
commit
5da903f3fe
4 changed files with 15 additions and 12 deletions
|
@ -131,7 +131,7 @@ func (ws *WebSocketHandler) Upgrade(w http.ResponseWriter, r *http.Request) erro
|
|||
|
||||
if err = connection.WriteJSON(message.Disconnect{
|
||||
Event: event.SYSTEM_DISCONNECT,
|
||||
Message: "invalid password",
|
||||
Message: "invalid_password",
|
||||
}); err != nil {
|
||||
ws.logger.Error().Err(err).Msg("failed to send disconnect")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue