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:34:15 UTC
[camel] branch master updated: Camel-AWS2-ECS: 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 784ba32 Camel-AWS2-ECS: Correct the way we return errorCode
784ba32 is described below
commit 784ba322681915efc9561011ceadeb5d92de882a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 21 08:33:36 2020 +0100
Camel-AWS2-ECS: Correct the way we return errorCode
---
.../java/org/apache/camel/component/aws2/ecs/ECS2Producer.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Producer.java b/components/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Producer.java
index 64dae01..3f5a706 100644
--- a/components/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Producer.java
+++ b/components/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Producer.java
@@ -106,7 +106,7 @@ public class ECS2Producer extends DefaultProducer {
ListClustersRequest request = builder.build();
result = ecsClient.listClusters(request);
} 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);
@@ -124,7 +124,7 @@ public class ECS2Producer extends DefaultProducer {
CreateClusterRequest request = builder.build();
result = ecsClient.createCluster(request);
} 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);
@@ -142,7 +142,7 @@ public class ECS2Producer extends DefaultProducer {
DescribeClustersRequest request = builder.build();
result = ecsClient.describeClusters(request);
} catch (AwsServiceException ase) {
- LOG.trace("Describe Clusters command returned the error code {}", ase.getMessage());
+ LOG.trace("Describe Clusters command returned the error code {}", ase.awsErrorDetails().errorCode());
throw ase;
}
Message message = getMessageForResponse(exchange);
@@ -162,7 +162,7 @@ public class ECS2Producer extends DefaultProducer {
DeleteClusterRequest request = builder.build();
result = ecsClient.deleteCluster(request);
} 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);