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

jeremyross pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new e79d5c4613e CAMEL-18959: camel-salesforce: Report deserialize 
exception.
e79d5c4613e is described below

commit e79d5c4613e2c37350fa6df2b0c710235559341c
Author: Jeremy Ross <jeremy.g.r...@gmail.com>
AuthorDate: Sat Jan 21 10:34:04 2023 -0600

    CAMEL-18959: camel-salesforce: Report deserialize exception.
---
 .../component/salesforce/internal/processor/JsonRestProcessor.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/JsonRestProcessor.java
 
b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/JsonRestProcessor.java
index b3e4d02c1bc..5885b8b58bf 100644
--- 
a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/JsonRestProcessor.java
+++ 
b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/processor/JsonRestProcessor.java
@@ -289,7 +289,7 @@ public class JsonRestProcessor extends 
AbstractRestProcessor {
                                 objectMapper, responseClass, restClient, 
determineHeaders(exchange), response);
                 out.setBody(iterator);
             }
-        } catch (IOException e) {
+        } catch (Exception e) {
             String msg = "Error parsing JSON response: " + e.getMessage();
             exchange.setException(new SalesforceException(msg, e));
         } finally {

Reply via email to