mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
AuditRecords should report the provider name (#1628)
This commit is contained in:
@@ -486,7 +486,7 @@ func ValidateAndNormalizeConfig(config *models.DNSConfig) (errs []error) {
|
||||
continue
|
||||
}
|
||||
if err := providers.AuditRecords(provider.ProviderBase.ProviderType, domain.Records); err != nil {
|
||||
errs = append(errs, err)
|
||||
errs = append(errs, fmt.Errorf("%s rejects domain %s: %w", provider.ProviderBase.ProviderType, domain.Name, err))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -81,7 +81,7 @@ func TxtNoStringsLen256orLonger(records []*models.RecordConfig) error {
|
||||
if rc.HasFormatIdenticalToTXT() { // TXT and similar:
|
||||
for _, txt := range rc.TxtStrings {
|
||||
if len(txt) > 255 {
|
||||
return fmt.Errorf("txtstring length > 255")
|
||||
return fmt.Errorf("%q txtstring length > 255", rc.GetLabel())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user