You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gz...@apache.org on 2019/04/09 14:51:08 UTC
[camel] branch master updated: Fix operation name in exception
message
This is an automated email from the ASF dual-hosted git repository.
gzurowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 4c0e2aa Fix operation name in exception message
4c0e2aa is described below
commit 4c0e2aada5e9dae44552382fb5bf3cd008a23893
Author: Gregor Zurowski <gr...@zurowski.org>
AuthorDate: Tue Apr 9 16:50:34 2019 +0200
Fix operation name in exception message
---
.../src/main/java/org/apache/camel/component/aws/s3/S3Producer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Producer.java b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Producer.java
index 23ce3db..5b684cf 100644
--- a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Producer.java
+++ b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Producer.java
@@ -397,10 +397,10 @@ public class S3Producer extends DefaultProducer {
}
sourceKey = exchange.getIn().getHeader(S3Constants.KEY, String.class);
if (ObjectHelper.isEmpty(bucketName)) {
- throw new IllegalArgumentException("Bucket Name must be specified for deleteObject Operation");
+ throw new IllegalArgumentException("Bucket Name must be specified for getObject Operation");
}
if (ObjectHelper.isEmpty(sourceKey)) {
- throw new IllegalArgumentException("Source Key must be specified for deleteObject Operation");
+ throw new IllegalArgumentException("Source Key must be specified for getObject Operation");
}
GetObjectRequest req = new GetObjectRequest(bucketName, sourceKey);
S3Object res = s3Client.getObject(req);