mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Switch from fmt.Error* to errors.Error* (#317)
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/StackExchange/dnscontrol/providers"
|
||||
"github.com/StackExchange/dnscontrol/providers/diff"
|
||||
"github.com/miekg/dns/dnsutil"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/xlucas/go-ovh/ovh"
|
||||
)
|
||||
|
||||
@@ -61,7 +62,7 @@ func (c *ovhProvider) GetNameservers(domain string) ([]*models.Nameserver, error
|
||||
}
|
||||
_, ok := c.zones[domain]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("%s not listed in zones for ovh account", domain)
|
||||
return nil, errors.Errorf("%s not listed in zones for ovh account", domain)
|
||||
}
|
||||
|
||||
ns, err := c.fetchNS(domain)
|
||||
|
Reference in New Issue
Block a user