From 408b8ca5f30fd0caa45c42777f9e1ea3028e02bf Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Mon, 15 Feb 2016 12:11:20 -0500 Subject: [PATCH] INT-3954: Nested Exception in SFTP remove() JIRA: https://jira.spring.io/browse/INT-3954 Left `e.toString` in the message for now; to avoid a breaking change. --- .../springframework/integration/sftp/session/SftpSession.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java index b574e58846..7f69034c06 100644 --- a/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java +++ b/spring-integration-sftp/src/main/java/org/springframework/integration/sftp/session/SftpSession.java @@ -80,7 +80,8 @@ public class SftpSession implements Session { return true; } catch (SftpException e) { - throw new NestedIOException("Failed to remove file: "+ e); + // TODO: in 5.0 remove e.toString() INT-3913 + throw new NestedIOException("Failed to remove file: " + e.toString(), e); } }