From 0435c0ba70169036affa78f438baf2d87538bfd1 Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Tue, 19 Jul 2011 10:14:04 -0700 Subject: [PATCH] [aws|elb] use slurp when raising errors to properly capture exception details --- lib/fog/aws/elb.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fog/aws/elb.rb b/lib/fog/aws/elb.rb index c5d02d01d..10a28abda 100644 --- a/lib/fog/aws/elb.rb +++ b/lib/fog/aws/elb.rb @@ -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