lib/s3_website/errors.rb in s3_website-1.6.3 vs lib/s3_website/errors.rb in s3_website-1.6.4
- old
+ new
@@ -29,6 +29,14 @@
class RetryAttemptsExhaustedError < S3WebsiteError
def initialize(message = "Operation failed even though we tried to recover from it")
super(message)
end
end
+
+ def self.error_report(error)
+ if error.is_a? S3WebsiteError
+ "#{error.message}"
+ else
+ "#{error.message} (#{error.class})"
+ end
+ end
end