1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|elb] use slurp when raising errors to properly capture exception details

This commit is contained in:
Blake Gentry 2011-07-19 10:14:04 -07:00
parent dc094bd781
commit 0435c0ba70

View file

@ -160,11 +160,11 @@ module Fog
when 'CertificateNotFound'
raise Fog::AWS::IAM::NotFound.slurp(error, match[2])
when 'LoadBalancerNotFound'
raise Fog::AWS::ELB::NotFound
raise Fog::AWS::ELB::NotFound.slurp(error, match[2])
when 'DuplicateLoadBalancerName'
raise Fog::AWS::ELB::IdentifierTaken
raise Fog::AWS::ELB::IdentifierTaken.slurp(error, match[2])
when 'InvalidInstance'
raise Fog::AWS::ELB::InvalidInstance
raise Fog::AWS::ELB::InvalidInstance.slurp(error, match[2])
else
raise
end