From ec2138b21c10143306c5e6223e474bb61cb9ca41 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 24 Nov 2016 15:04:27 +0000 Subject: [PATCH] middleware/file: better notify error reporting Report errors as originating from notifies in all cases. Fixes #412 --- middleware/file/notify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/file/notify.go b/middleware/file/notify.go index d4fe7efc0..c838512fe 100644 --- a/middleware/file/notify.go +++ b/middleware/file/notify.go @@ -71,7 +71,7 @@ func notifyAddr(c *dns.Client, m *dns.Msg, s string) (err error) { } } if err != nil { - return err + return fmt.Errorf("Notify for zone %q was not accepted by %q: %q", m.Question[0].Name, s, err) } return fmt.Errorf("Notify for zone %q was not accepted by %q: rcode was %q", m.Question[0].Name, s, rcode.ToString(code)) }