From 66e2552a7e5b5b59126be2b3d74384cc8e48e273 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 19 Dec 2019 12:19:34 -0500 Subject: [PATCH] Don't error out on api errors --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 005e20c..6ba2163 100644 --- a/main.go +++ b/main.go @@ -569,6 +569,10 @@ func formatOutput(api keybase.ChatAPI) StyledString { // Input handling func handleMessage(api keybase.ChatAPI) { + if api.Error != nil { + printError(fmt.Sprintf("%+v", api.Error)) + return + } if _, ok := typeCommands[api.Msg.Content.Type]; ok { if api.Msg.Channel.MembersType == channel.MembersType && cleanChannelName(api.Msg.Channel.Name) == channel.Name { if channel.MembersType == keybase.TEAM && channel.TopicName != api.Msg.Channel.TopicName {