provider/aws: Return an error if no route is found for an AWS Route

This commit is contained in:
clint shryock 2016-02-16 16:08:02 -06:00
parent 320dc3ddf4
commit a706b7c8a4
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)
}