mirror of
https://github.com/zhanghai/MaterialFiles
synced 2024-07-09 03:55:50 +00:00
Fix: Fix exception conversion in FtpCopyMove
This commit is contained in:
parent
120ddc6756
commit
4469d66ad2
|
@ -79,7 +79,7 @@ internal object FtpCopyMove {
|
|||
try {
|
||||
targetOutputStream.close()
|
||||
} catch (e: IOException) {
|
||||
throw IOException(e).toFileSystemExceptionForFtp(target.toString())
|
||||
throw e.toFileSystemExceptionForFtp(target.toString())
|
||||
} finally {
|
||||
if (!successful) {
|
||||
try {
|
||||
|
@ -94,7 +94,7 @@ internal object FtpCopyMove {
|
|||
try {
|
||||
sourceInputStream.close()
|
||||
} catch (e: IOException) {
|
||||
throw IOException(e).toFileSystemExceptionForFtp(source.toString())
|
||||
throw e.toFileSystemExceptionForFtp(source.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user