Merge pull request #5155 from hashicorp/b-aws-route-error

provider/aws: Return an error if no route is found for an AWS Route
This commit is contained in:
Clint 2016-02-17 10:02:48 -06:00
commit 37a708a2f0
1 changed files with 3 additions and 1 deletions

View File

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