Update slack integration to not Fatal on bad msgs

This commit is contained in:
cws 2017-03-30 10:47:02 -04:00
parent b0210fd240
commit d582a294a5
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ func (s *Slack) Serve() {
for { for {
msg, err := s.receiveMessage() msg, err := s.receiveMessage()
if err != nil { if err != nil {
log.Fatalf("Slack API error: %s", err) log.Printf("Slack API error: %s", err)
continue
} }
switch msg.Type { switch msg.Type {
case "message": case "message":