mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
MAINTENANCE: Return error instead of panic when converting RR to RC (#1199)
This commit is contained in:
@@ -286,7 +286,10 @@ func (c *axfrddnsProvider) GetZoneRecords(domain string) (models.Records, error)
|
||||
}
|
||||
continue
|
||||
default:
|
||||
rec := models.RRtoRC(rr, domain)
|
||||
rec, err := models.RRtoRC(rr, domain)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
foundRecords = append(foundRecords, &rec)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user