From f8088a64296224977d1f7d0e69a7f2705cde68ae Mon Sep 17 00:00:00 2001 From: Michael de Wit Date: Wed, 12 Jul 2017 15:48:45 +0200 Subject: [PATCH] Exit with error code 1 if a recipient address is incorrect (#16) --- plugin.go | 1 + 1 file changed, 1 insertion(+) 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() }