Skip to content

Commit a88b4b2

Browse files
authored
recognize datafeed error correctly (#259)
1 parent 53e4f3e commit a88b4b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ns1/resource_datafeed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func DataFeedRead(d *schema.ResourceData, meta interface{}) error {
7777
f, resp, err := client.DataFeeds.Get(d.Get("source_id").(string), d.Id())
7878
if err != nil {
7979
// No custom error type is currently defined in the SDK for a data feed.
80-
if strings.Contains(err.Error(), "feed not found") {
80+
if strings.Contains(err.Error(), "not found") {
8181
log.Printf("[DEBUG] NS1 data source (%s) not found", d.Id())
8282
d.SetId("")
8383
return nil

0 commit comments

Comments
 (0)