diff --git a/resources/google/common/googlesettingsdialog.cpp b/resources/google/common/googlesettingsdialog.cpp --- a/resources/google/common/googlesettingsdialog.cpp +++ b/resources/google/common/googlesettingsdialog.cpp @@ -193,6 +193,11 @@ AuthJob *authJob = qobject_cast(job); const AccountPtr account = authJob->account(); + if (authJob->error() != KGAPI2::NoError) { + KMessageBox::sorry(this, authJob->errorString()); + return; + } + if (!m_accountManager->storeAccount(account)) { qWarning() << "Failed to add account to KWallet"; }