mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-01 13:31:38 +08:00
Merge pull request #1788 from chenhaoyus/master
fix: 解决sftp服务器连接失败未抛出异常,导致后续获取ChannelSft出现nullPointerException
This commit is contained in:
commit
fa123778cb
@ -64,6 +64,8 @@ public class SftpHelper extends FtpHelper {
|
||||
String message = String.format("请确认连接ftp服务器端口是否正确,错误的端口: [%s] ", port);
|
||||
LOG.error(message);
|
||||
throw DataXException.asDataXException(FtpReaderErrorCode.FAIL_LOGIN, message, e);
|
||||
}else{
|
||||
throw DataXException.asDataXException(FtpReaderErrorCode.COMMAND_FTP_IO_EXCEPTION, "", e);
|
||||
}
|
||||
}else {
|
||||
if("Auth fail".equals(e.getMessage())){
|
||||
|
Loading…
Reference in New Issue
Block a user