mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-05 21:53:04 -06:00
Merge pull request #1740 from grosskur/alan-cloudflare-error-msg
providers/cloudflare: Better error message
This commit is contained in:
commit
4bf9c26af0
@ -91,7 +91,7 @@ func resourceCloudFlareRecordRead(d *schema.ResourceData, meta interface{}) erro
|
||||
|
||||
rec, err := client.RetrieveRecord(d.Get("domain").(string), d.Id())
|
||||
if err != nil {
|
||||
return fmt.Errorf("Couldn't find record: %s", err)
|
||||
return fmt.Errorf("Couldn't find record ID (%s) for domain (%s): %s", d.Id(), d.Get("domain").(string), err)
|
||||
}
|
||||
|
||||
d.Set("name", rec.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user