Commit e50ae403 authored by Justin Santa Barbara's avatar Justin Santa Barbara

AWS: Wrap AWS error when failing to create security group ingress

All AWS errors should be wrapped in a user-friendly error before returning.
parent 5f553a21
......@@ -1655,7 +1655,7 @@ func (s *AWSCloud) ensureSecurityGroupIngress(securityGroupId string, addPermiss
_, err = s.ec2.AuthorizeSecurityGroupIngress(request)
if err != nil {
glog.Warning("Error authorizing security group ingress", err)
return false, err
return false, fmt.Errorf("error authorizing security group ingress: %v", err)
}
return true, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment