Skip to content

Commit

Permalink
CAPI-269: DNS Records improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfmnk committed Aug 7, 2024
1 parent 00cb4c7 commit 8f0a8f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloudconnexa/dns_records.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import (
"net/http"
)

var (
ErrDnsRecordNotFound = fmt.Errorf("dns record not found")
)

type DnsRecord struct {
Id string `json:"id"`
Domain string `json:"domain"`
Expand Down Expand Up @@ -68,7 +72,7 @@ func (c *DNSRecordsService) GetDnsRecord(recordId string) (*DnsRecord, error) {
}
page++
}
return nil, fmt.Errorf("DNS record with ID %s not found", recordId)
return nil, ErrDnsRecordNotFound
}

func (c *DNSRecordsService) Create(record DnsRecord) (*DnsRecord, error) {
Expand Down

0 comments on commit 8f0a8f4

Please sign in to comment.