1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-28 08:39:13 +02:00

Update pushbullet.go

This commit is contained in:
KrishanBhalla 2021-02-01 19:21:52 +00:00 committed by GitHub
parent c159e97d01
commit 4f6011a81a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,8 +39,7 @@ func (pb Pushbullet) Send(subject, message string) error {
for _, deviceNickname := range pb.deviceNicknames {
dev, err := pb.client.Device(deviceNickname)
if err != nil {
// Unregistered devices should not result in a failure for all others
continue
return errors.Wrapf(err, "failed to find Pushbullet device with nickname '%s'", deviceNickname)
}
err = dev.PushNote(subject, message)