| 848 | } |
| 849 | |
| 850 | void DownloadDictionariesDialog::process_file_list_error(FtpOperationErrorType error) { |
| 851 | switch (error) { |
| 852 | case FtpOperationErrorType::none: |
| 853 | break; |
| 854 | case FtpOperationErrorType::login_failed: |
| 855 | return update_status(rc_str(IDS_STATUS_BAD_CONNECTION).c_str(), COLOR_FAIL); |
| 856 | case FtpOperationErrorType::download_failed: |
| 857 | return update_status(rc_str(IDS_STATUS_CANT_LIST_FILES).c_str(), COLOR_FAIL); |
| 858 | case FtpOperationErrorType::download_cancelled: |
| 859 | return update_status(rc_str(IDS_STATUS_DOWNLOAD_CANCELLED).c_str(), COLOR_WARN); |
| 860 | } |
| 861 | } |
| 862 | |
| 863 | void DownloadDictionariesDialog::process_file_list_error(const FtpWebOperationError &error) { |
| 864 | switch (error.type) { |
no test coverage detected