1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-24 08:22:18 +02:00

Update service/twitter/twitter.go

Co-authored-by: Niko Köser <koeserniko@gmail.com>
This commit is contained in:
KrishanBhalla 2021-01-31 12:17:32 +00:00 committed by GitHub
parent 3421834a08
commit 80e5053c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,8 @@ func (t Twitter) Send(subject, message string) error {
Event: directMessageEvent,
}
if _, _, err := t.client.DirectMessages.EventsNew(directMessageParams); err != nil {
_, _, err := t.client.DirectMessages.EventsNew(directMessageParams)
if err != nil {
return errors.Wrapf(err, "failed to send direct message to twitter ID '%d'", twitterID)
}
}