Skip to content

Commit caae53f

Browse files
committed
add error message to OpenIMChannel
1 parent b45da77 commit caae53f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

standup/standup.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ func AskStandupYesterdayScheduled(s *common.Slack, userid string) error {
139139
"uuid": uuid,
140140
}).Info("Standup uuid generated")
141141

142-
_, _, channelid, _ := s.Client.OpenIMChannel(userid)
142+
_, _, channelid, err := s.Client.OpenIMChannel(userid)
143+
if err != nil {
144+
log.WithError(err).Error("OpenIMChannel could not get channel id")
145+
}
143146

144147
attachment := slack.Attachment{
145148
Text: "What did you do yesterday?",

0 commit comments

Comments
 (0)