diff --git a/providers/dns/dnsimple/dnsimple.go b/providers/dns/dnsimple/dnsimple.go index 155cacd2..e3fea79e 100644 --- a/providers/dns/dnsimple/dnsimple.go +++ b/providers/dns/dnsimple/dnsimple.go @@ -32,7 +32,7 @@ func NewDNSProvider() (*DNSProvider, error) { // DNSProvider instance configured for dnsimple. func NewDNSProviderCredentials(accessToken, baseUrl string) (*DNSProvider, error) { if accessToken == "" { - return nil, fmt.Errorf("DNSimple OAuth token missing") + return nil, fmt.Errorf("DNSimple OAuth token is missing") } client := dnsimple.NewClient(dnsimple.NewOauthTokenCredentials(accessToken)) @@ -173,7 +173,7 @@ func (c *DNSProvider) getAccountID() (string, error) { } if whoamiResponse.Data.Account == nil { - return "", fmt.Errorf("DNSimple API returned empty account ID") + return "", fmt.Errorf("DNSimple user tokens are not supported, please use an account token.") } return strconv.Itoa(whoamiResponse.Data.Account.ID), nil diff --git a/providers/dns/dnsimple/dnsimple_test.go b/providers/dns/dnsimple/dnsimple_test.go index ee65dd42..bd35790d 100644 --- a/providers/dns/dnsimple/dnsimple_test.go +++ b/providers/dns/dnsimple/dnsimple_test.go @@ -74,7 +74,7 @@ func TestNewDNSProviderInvalidWithMissingOauthToken(t *testing.T) { provider, err := NewDNSProvider() assert.Nil(t, provider) - assert.EqualError(t, err, "DNSimple OAuth token missing") + assert.EqualError(t, err, "DNSimple OAuth token is missing") } // @@ -102,7 +102,7 @@ func TestNewDNSProviderCredentialsInvalidWithMissingOauthToken(t *testing.T) { provider, err := NewDNSProviderCredentials("", "") assert.Nil(t, provider) - assert.EqualError(t, err, "DNSimple OAuth token missing") + assert.EqualError(t, err, "DNSimple OAuth token is missing") } //