From 22e487c5d0677c38c3dcdac36d54d4f3fef73333 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Wed, 8 Apr 2015 14:01:00 -0500 Subject: [PATCH] surface error with setting records on Route 53 record --- builtin/providers/aws/resource_aws_route53_record.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_route53_record.go b/builtin/providers/aws/resource_aws_route53_record.go index 58d54b4e7..8b2afa7b1 100644 --- a/builtin/providers/aws/resource_aws_route53_record.go +++ b/builtin/providers/aws/resource_aws_route53_record.go @@ -186,7 +186,7 @@ func resourceAwsRoute53RecordRead(d *schema.ResourceData, meta interface{}) erro err := d.Set("records", flattenResourceRecords(record.ResourceRecords)) if err != nil { - log.Printf("[DEBUG] Error setting records for: %s, error: %#v", en, err) + return fmt.Errorf("[DEBUG] Error setting records for: %s, error: %#v", en, err) } d.Set("ttl", record.TTL)