Added filePath argument on FileProviderFTPError

This commit is contained in:
T.Sasaki
2018-11-19 18:24:07 +09:00
parent 504ca76077
commit d050ceb3bc
+2 -2
View File
@@ -689,7 +689,7 @@ internal extension FTPFileProvider {
}
if !response.hasPrefix("2") {
throw FileProviderFTPError(message: response)
throw FileProviderFTPError(message: response, path: filePath)
}
} catch {
completionHandler(error)
@@ -818,7 +818,7 @@ internal extension FTPFileProvider {
for line in lines {
if !(line.hasPrefix("1") || line.hasPrefix("2")) {
// FTP Error Response
throw FileProviderFTPError(message: response)
throw FileProviderFTPError(message: response, path: filePath)
}
}
}