summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/google_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/Services/google_service.cpp')
-rw-r--r--plugins/CloudFile/src/Services/google_service.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/CloudFile/src/Services/google_service.cpp b/plugins/CloudFile/src/Services/google_service.cpp
index 42c08b6cc8..6a40d3ec46 100644
--- a/plugins/CloudFile/src/Services/google_service.cpp
+++ b/plugins/CloudFile/src/Services/google_service.cpp
@@ -90,22 +90,25 @@ unsigned CGDriveService::RequestAccessTokenThread(void *owner, void *param)
: service->HttpStatusToError(response ? response->resultCode : 0);
Netlib_Logf(service->m_hConnection, "%s: %s", service->GetAccountName(), error);
- //ShowNotification(TranslateT("server does not respond"), MB_ICONERROR);
+ ShowNotification(TranslateT("Server does not respond"), MB_ICONERROR);
+ EndDialog(hwndDlg, 0);
return 0;
}
JSONNode root = JSONNode::parse(response->pData);
if (root.empty()) {
Netlib_Logf(service->m_hConnection, "%s: %s", service->GetAccountName(), service->HttpStatusToError(response->resultCode));
- //ShowNotification(TranslateT("server does not respond"), MB_ICONERROR);
+ ShowNotification(TranslateT("Server does not respond"), MB_ICONERROR);
+ EndDialog(hwndDlg, 0);
return 0;
}
JSONNode node = root.at("error_description");
if (!node.isnull()) {
- ptrW error_description(mir_a2u_cp(node.as_string().c_str(), CP_UTF8));
+ CMStringW error_description = node.as_mstring();
Netlib_Logf(service->m_hConnection, "%s: %s", service->GetAccountName(), service->HttpStatusToError(response->resultCode));
- //ShowNotification((wchar_t*)error_description, MB_ICONERROR);
+ ShowNotification(error_description, MB_ICONERROR);
+ EndDialog(hwndDlg, 0);
return 0;
}