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.
This commit is contained in:
Gary Russell
2016-02-15 12:11:20 -05:00
committed by Artem Bilan
parent 51a16b2f45
commit 408b8ca5f3

View File

@@ -80,7 +80,8 @@ public class SftpSession implements Session<LsEntry> {
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);
}
}