mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Lint: Fix ST1005: error strings should not be capitalized (#834)
This commit is contained in:
@@ -51,7 +51,7 @@ func (n *HXClient) getNameserversRaw(domain string) ([]string, error) {
|
||||
}
|
||||
nsColumn := r.GetColumn("NAMESERVER")
|
||||
if nsColumn == nil {
|
||||
return nil, fmt.Errorf("Error getting NAMESERVER column for domain: %s", domain)
|
||||
return nil, fmt.Errorf("error getting NAMESERVER column for domain: %s", domain)
|
||||
}
|
||||
ns := nsColumn.GetData()
|
||||
sort.Strings(ns)
|
||||
|
@@ -57,7 +57,7 @@ func (n *HXClient) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Corr
|
||||
|
||||
for _, rec := range dc.Records {
|
||||
if rec.Type == "ALIAS" {
|
||||
return nil, fmt.Errorf("We support realtime ALIAS RR over our X-DNS service, please get in touch with us")
|
||||
return nil, fmt.Errorf("we support realtime ALIAS RR over our X-DNS service, please get in touch with us")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ func (n *HXClient) getRecords(domain string) ([]*HXRecord, error) {
|
||||
}
|
||||
rrColumn := r.GetColumn("RR")
|
||||
if rrColumn == nil {
|
||||
return nil, fmt.Errorf("Error getting RR column for domain: %s", domain)
|
||||
return nil, fmt.Errorf("failed getting RR column for domain: %s", domain)
|
||||
}
|
||||
rrs := rrColumn.GetData()
|
||||
for _, rr := range rrs {
|
||||
|
Reference in New Issue
Block a user