diff --git a/plugin.go b/plugin.go index b1ad955..e4afc94 100644 --- a/plugin.go +++ b/plugin.go @@ -197,6 +197,7 @@ func (p Plugin) Exec() error { if err := gomail.Send(closer, message); err != nil { log.Errorf("Could not send email to %q: %v", recipient, err) + return err } message.Reset() }