diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/RemoteFileTemplate.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/RemoteFileTemplate.java index f6816983fe..e0e7e71d27 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/RemoteFileTemplate.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/RemoteFileTemplate.java @@ -514,7 +514,9 @@ public class RemoteFileTemplate implements RemoteFileOperations, Initializ name = "InputStream payload"; } else { - throw new IllegalArgumentException("Unsupported payload type. The only supported payloads are " + + throw new IllegalArgumentException("Unsupported payload type [" + + payload.getClass().getName() + + "]. The only supported payloads are " + "java.io.File, java.lang.String, byte[], and InputStream"); } if (dataInputStream == null) {