Merge pull request #1740 from grosskur/alan-cloudflare-error-msg

providers/cloudflare: Better error message
This commit is contained in:
Mitchell Hashimoto 2015-04-29 13:54:25 -07:00
commit 4bf9c26af0

View File

@ -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)