middleware/file: better notify error reporting

Report errors as originating from notifies in all cases.

Fixes #412
This commit is contained in:
Miek Gieben
2016-11-24 15:04:27 +00:00
parent 08e2e9aa46
commit ec2138b21c

View File

@@ -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))
}