You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/02/21 07:59:45 UTC

[camel] branch master updated: Camel-AWS2-EKS: Correct the way we return errorCode

This is an automated email from the ASF dual-hosted git repository.

acosentino 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 c579f32  Camel-AWS2-EKS: Correct the way we return errorCode
c579f32 is described below

commit c579f32b2b64526880bbebad53418ed3e11a837b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 21 08:59:16 2020 +0100

    Camel-AWS2-EKS: Correct the way we return errorCode
---
 .../java/org/apache/camel/component/aws2/eks/EKS2Producer.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-aws2-eks/src/main/java/org/apache/camel/component/aws2/eks/EKS2Producer.java b/components/camel-aws2-eks/src/main/java/org/apache/camel/component/aws2/eks/EKS2Producer.java
index d4a8ba5..37630b5 100644
--- a/components/camel-aws2-eks/src/main/java/org/apache/camel/component/aws2/eks/EKS2Producer.java
+++ b/components/camel-aws2-eks/src/main/java/org/apache/camel/component/aws2/eks/EKS2Producer.java
@@ -104,7 +104,7 @@ public class EKS2Producer extends DefaultProducer {
         try {
             result = eksClient.listClusters(builder.build());
         } catch (AwsServiceException ase) {
-            LOG.trace("List Clusters command returned the error code {}", ase.getMessage());
+            LOG.trace("List Clusters command returned the error code {}", ase.awsErrorDetails().errorCode());
             throw ase;
         }
         Message message = getMessageForResponse(exchange);
@@ -129,7 +129,7 @@ public class EKS2Producer extends DefaultProducer {
         try {
             result = eksClient.createCluster(builder.build());
         } catch (AwsServiceException ase) {
-            LOG.trace("Create Cluster command returned the error code {}", ase.getMessage());
+            LOG.trace("Create Cluster command returned the error code {}", ase.awsErrorDetails().errorCode());
             throw ase;
         }
         Message message = getMessageForResponse(exchange);
@@ -148,7 +148,7 @@ public class EKS2Producer extends DefaultProducer {
         try {
             result = eksClient.describeCluster(builder.build());
         } catch (AwsServiceException ase) {
-            LOG.trace("Describe Cluster command returned the error code {}", ase.getMessage());
+            LOG.trace("Describe Cluster command returned the error code {}", ase.awsErrorDetails().errorCode());
             throw ase;
         }
         Message message = getMessageForResponse(exchange);
@@ -167,7 +167,7 @@ public class EKS2Producer extends DefaultProducer {
         try {
             result = eksClient.deleteCluster(builder.build());
         } catch (AwsServiceException ase) {
-            LOG.trace("Delete Cluster command returned the error code {}", ase.getMessage());
+            LOG.trace("Delete Cluster command returned the error code {}", ase.awsErrorDetails().errorCode());
             throw ase;
         }
         Message message = getMessageForResponse(exchange);