From ad4b9a84b7a403971f00e02e285deec32aa05be9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 10 Aug 2023 11:39:18 +0300 Subject: [PATCH] Adjust error messages --- bridgestate.go | 2 +- user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bridgestate.go b/bridgestate.go index 88405d1..918d23e 100644 --- a/bridgestate.go +++ b/bridgestate.go @@ -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", diff --git a/user.go b/user.go index 7708407..579e1bc 100644 --- a/user.go +++ b/user.go @@ -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)