Merge pull request #436 from miekg/better-error-code

middleware/file: better notify error reporting
This commit is contained in:
Miek Gieben
2016-11-24 16:27:20 +01:00
committed by GitHub

View File

@@ -71,7 +71,7 @@ func notifyAddr(c *dns.Client, m *dns.Msg, s string) (err error) {
} }
} }
if err != nil { 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)) return fmt.Errorf("Notify for zone %q was not accepted by %q: rcode was %q", m.Question[0].Name, s, rcode.ToString(code))
} }