davsclaus opened a new pull request, #23574:
URL: https://github.com/apache/camel/pull/23574

   ## Backport of #23567
   
   Cherry-pick of #23567 onto `camel-4.18.x`.
   
   **Original PR:** #23567 - CAMEL-23627: fixed response error check in 
SlackProducer
   **Original author:** @Xadhoodin
   **Target branch:** `camel-4.18.x`
   
   ### Original description
   
   Move the Slack API error response check inside the try block so the 
exception is set
   on the exchange before callback.done(true) fires. Previously the check 
happened after
   the callback, causing onException policies to miss the error. Also fix both 
methods
   to return true since SlackProducer is fully synchronous.


-- 
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