1
0
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:
Tom Limoncelli
2022-07-18 12:59:22 -04:00
committed by GitHub
parent 9416140dd0
commit bcaa6b15cb
2 changed files with 2 additions and 2 deletions

View File

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

View File

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