Adjust error messages
This commit is contained in:
parent
84aa0c6f4f
commit
ad4b9a84b7
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
2
user.go
2
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)
|
||||
|
|
Loading…
Reference in a new issue