Skip to content

Commit 41afc87

Browse files
phjordansissel
authored andcommitted
Raise a Logstash:Error when something is wrong with S3
Fixes #1
1 parent 13ab83a commit 41afc87

File tree

1 file changed

+1
-1
lines changed
  • lib/logstash/outputs

1 file changed

+1
-1
lines changed

lib/logstash/outputs/s3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def write_on_bucket(file)
150150
object.write(:file => file, :acl => @canned_acl)
151151
rescue AWS::Errors::Base => e
152152
@logger.error("S3: AWS error", :error => e)
153-
raise LogStash::ConfigurationError, "AWS Configuration Error"
153+
raise LogStash::Error, "AWS Configuration Error"
154154
end
155155

156156
@logger.debug("S3: has written remote file in bucket with canned ACL", :remote_filename => remote_filename, :bucket => @bucket, :canned_acl => @canned_acl)

0 commit comments

Comments
 (0)