fix(shoutrrr): display errors on init failure (#558)

This commit is contained in:
nils måsén 2020-05-29 11:02:13 +02:00 committed by GitHub
parent 86b1b0468a
commit 70bd4e2c8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View file

@ -47,7 +47,9 @@ func NewNotifier(c *cobra.Command) *Notifier {
default:
log.Fatalf("Unknown notification type %q", t)
}
n.types = append(n.types, tn)
if tn != nil {
n.types = append(n.types, tn)
}
}
return n