Bail out on failure when starting up

Don't silently hide failures, barf on startup. Also add more integration
tests that should catch some of these things.
This commit is contained in:
Miek Gieben
2016-04-27 10:48:22 +00:00
parent efd5135ee3
commit 7a8d943bcc
4 changed files with 91 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ func (d Dnssec) Sign(state middleware.State, zone string, now time.Time) *dns.Ms
for _, r := range rrSets(req.Extra) {
ttl := r[0].Header().Ttl
if sigs, err := d.sign(r, zone, ttl, incep, expir); err == nil {
req.Extra = append(req.Extra, sigs...)
req.Extra = append(sigs, req.Extra...) // prepend to leave OPT alone
}
}
return req