mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 06:06:38 +01:00
fix(shoutrrr): display errors on init failure (#558)
This commit is contained in:
parent
86b1b0468a
commit
70bd4e2c8b
2 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue