Fixed error type for ftp
This commit is contained in:
parent
8e8247c4a9
commit
d61366bed7
1 changed files with 1 additions and 1 deletions
|
@ -557,7 +557,7 @@ impl FileTransfer for FtpFileTransfer {
|
|||
Some(stream) => match stream.finalize_put_stream(writable) {
|
||||
Ok(_) => Ok(()),
|
||||
Err(err) => Err(FileTransferError::new_ex(
|
||||
FileTransferErrorType::NoSuchFileOrDirectory,
|
||||
FileTransferErrorType::ProtocolError,
|
||||
format!("{}", err),
|
||||
)),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue