From a706b7c8a4d25ac8c9683756bf17f08b00709309 Mon Sep 17 00:00:00 2001 From: clint shryock Date: Tue, 16 Feb 2016 16:08:02 -0600 Subject: [PATCH] provider/aws: Return an error if no route is found for an AWS Route --- builtin/providers/aws/resource_aws_route.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_route.go b/builtin/providers/aws/resource_aws_route.go index 6832f8703..017978903 100644 --- a/builtin/providers/aws/resource_aws_route.go +++ b/builtin/providers/aws/resource_aws_route.go @@ -322,5 +322,7 @@ func findResourceRoute(conn *ec2.EC2, rtbid string, cidr string) (*ec2.Route, er } } - return nil, nil + return nil, fmt.Errorf(` +error finding matching route for Route table (%s) and destination CIDR block (%s)`, + rtbid, cidr) }