lib/elasticrawl/config.rb in elasticrawl-1.1.1 vs lib/elasticrawl/config.rb in elasticrawl-1.1.2

- old
+ new

@@ -99,11 +99,11 @@ s3.buckets[bucket_name].exists? rescue AWS::S3::Errors::SignatureDoesNotMatch => e raise AWSCredentialsInvalidError, 'AWS access credentials are invalid' rescue AWS::Errors::Base => s3e - raise S3AccessError.new(s3e.http_response), e.message + raise S3AccessError.new(s3e.http_response), s3e.message end end # Creates the S3 bucket and config directory. Deploys the config templates # and creates the sqlite database. @@ -157,11 +157,11 @@ begin s3 = AWS::S3.new s3.buckets.create(bucket_name) rescue AWS::Errors::Base => s3e - raise S3AccessError.new(s3e.http_response), e.message + raise S3AccessError.new(s3e.http_response), s3e.message end end # Deletes a bucket and its contents using the S3 API. def delete_bucket(bucket_name) @@ -169,10 +169,10 @@ s3 = AWS::S3.new bucket = s3.buckets[bucket_name] bucket.delete! rescue AWS::Errors::Base => s3e - raise S3AccessError.new(s3e.http_response), e.message + raise S3AccessError.new(s3e.http_response), s3e.message end end # Creates config directory and copies config templates into it. # Saves S3 bucket name to jobs.yml and AWS credentials to aws.yml.