mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 06:31:19 +02:00
- attempt to let user know when host does not have data port open
This commit is contained in:
@@ -338,6 +338,9 @@ pair<FTP_Client_ResultType,string> FTPClientThread::getMapFromServer(pair<string
|
||||
if(res == CURLE_PARTIAL_FILE) {
|
||||
result.first = ftp_crt_PARTIALFAIL;
|
||||
}
|
||||
else if(res == CURLE_COULDNT_CONNECT) {
|
||||
result.first = ftp_crt_HOST_NOT_ACCEPTING;
|
||||
}
|
||||
}
|
||||
else {
|
||||
result.first = ftp_crt_SUCCESS;
|
||||
@@ -931,6 +934,10 @@ pair<FTP_Client_ResultType,string> FTPClientThread::getFileFromServer(FTP_Clien
|
||||
if(res == CURLE_PARTIAL_FILE || ftpfile.isValidXfer == true) {
|
||||
result.first = ftp_crt_PARTIALFAIL;
|
||||
}
|
||||
else if(res == CURLE_COULDNT_CONNECT) {
|
||||
result.first = ftp_crt_HOST_NOT_ACCEPTING;
|
||||
}
|
||||
|
||||
|
||||
if(destRootFolder != "") {
|
||||
if(pathCreated == true) {
|
||||
|
Reference in New Issue
Block a user