Adjust error messages

This commit is contained in:
Tulir Asokan 2023-08-10 11:39:18 +03:00
parent 84aa0c6f4f
commit ad4b9a84b7
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ func init() {
status.BridgeStateHumanErrors.Update(status.BridgeStateErrorMap{
GMListenError: "Error polling messages from Google Messages server, the bridge will try to reconnect",
GMFatalError: "Google Messages token was invalidated, please re-link the bridge",
GMUnpaired: "The bridge was unpaired from Google Messages, please re-link the bridge",
GMUnpaired: "Unpaired from Google Messages, please re-link to continue using the bridge",
GMBrowserInactive: "Google Messages opened in another browser",
GMBrowserInactiveTimeout: "Google Messages disconnected due to timeout",
GMBrowserInactiveInactivity: "Google Messages disconnected due to inactivity",

View file

@ -597,7 +597,7 @@ func (user *User) HandleEvent(event interface{}) {
switch v := event.(type) {
case *events.ListenFatalError:
user.Logout(status.BridgeState{
StateEvent: status.StateBadCredentials,
StateEvent: status.StateUnknownError,
Error: GMFatalError,
Info: map[string]any{"go_error": v.Error.Error()},
}, false)