You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/05/16 10:38:23 UTC

[camel] branch main updated: CAMEL-18113: Do not supress cause (#7619)

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

davsclaus 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 76633976630 CAMEL-18113: Do not supress cause (#7619)
76633976630 is described below

commit 76633976630742842790638f5d71e9d8003739c7
Author: Benjamin Graf <gr...@users.noreply.github.com>
AuthorDate: Mon May 16 12:38:12 2022 +0200

    CAMEL-18113: Do not supress cause (#7619)
    
    * Do not supress cause
    
    * Do not supress cause
---
 .../main/java/org/apache/camel/component/file/remote/FtpOperations.java | 2 +-
 .../java/org/apache/camel/component/file/remote/SftpOperations.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
index 965bf334a2f..951ef7e8e0c 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
@@ -571,7 +571,7 @@ public class FtpOperations implements RemoteFileOperations<FTPFile> {
             exchange.getIn().setHeader(FtpConstants.FILE_LOCAL_WORK_PATH, local.getPath());
 
         } catch (Exception e) {
-            throw new GenericFileOperationFailedException("Cannot create new local work file: " + local);
+            throw new GenericFileOperationFailedException("Cannot create new local work file: " + local, e);
         }
 
         boolean result;
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
index 0d337232896..3ab3df60131 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
@@ -870,7 +870,7 @@ public class SftpOperations implements RemoteFileOperations<SftpRemoteFile> {
             // set header with the path to the local work file
             exchange.getIn().setHeader(FtpConstants.FILE_LOCAL_WORK_PATH, local.getPath());
         } catch (Exception e) {
-            throw new GenericFileOperationFailedException("Cannot create new local work file: " + local);
+            throw new GenericFileOperationFailedException("Cannot create new local work file: " + local, e);
         }
         String currentDir = null;
         try {