oscerd commented on code in PR #25255:
URL: https://github.com/apache/camel/pull/25255#discussion_r3690577062


##########
components/camel-aws/camel-aws2-eventbridge/src/main/java/org/apache/camel/component/aws2/eventbridge/EventbridgeProducer.java:
##########
@@ -155,6 +155,9 @@ private void putRule(EventBridgeClient eventbridgeClient, 
Exchange exchange) thr
                 Message message = getMessageForResponse(exchange);
                 message.setBody(result);
                 message.setHeader(EventbridgeConstants.RULE_ARN, 
result.ruleArn());
+            } else {
+                throw new IllegalArgumentException(

Review Comment:
   Done in dda6987 — putRule now throws String.format("Expected body of type %s 
but was %s", PutRuleRequest.class.getName(), ...), matching executeOperation. 
(putRule stays on its own path since it also sets the RULE_ARN header from the 
response, but the error message is now consistent.) Test updated to assert the 
new format.\n\n_Claude Code on behalf of Andrea Cosentino (@oscerd)._



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to