From kde-commits Sat Sep 29 07:13:47 2018 From: Arjun AK Date: Sat, 29 Sep 2018 07:13:47 +0000 To: kde-commits Subject: [kwallet] src/runtime/kwalletd: Log wallet open failure errors Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=153821223004273 Git commit c7b064e5a3d55b522e0f1f331feb13c882f90e52 by Arjun AK. Committed on 29/09/2018 at 07:12. Pushed by arjunak into branch 'master'. Log wallet open failure errors Reviewed By: mlaurent Differential Revision: https://phabricator.kde.org/D15778 M +3 -2 src/runtime/kwalletd/kwalletd.cpp https://commits.kde.org/kwallet/c7b064e5a3d55b522e0f1f331feb13c882f90e52 diff --git a/src/runtime/kwalletd/kwalletd.cpp b/src/runtime/kwalletd/kwall= etd.cpp index 90f3f53..3893b0f 100644 --- a/src/runtime/kwalletd/kwalletd.cpp +++ b/src/runtime/kwalletd/kwalletd.cpp @@ -681,12 +681,13 @@ int KWalletD::internalOpen(const QString& appid, cons= t QString& wallet, password =3D kpd->password(); int rc =3D b->open(password.toUtf8()); if (!b->isOpen()) { + const auto errorStr =3D KWallet::Backend::= openRCToString(rc); + qCWarning(KWALLETD_LOG) << "Failed to open= wallet" << wallet << errorStr; kpd->setPrompt(i18n( "Error opening the wallet " "'%1'. Please try again.
(Error code %2: %3)
", - wallet.toHtmlEscaped(), rc, - KWallet::Backend::openRCToString(rc))); + wallet.toHtmlEscaped(), rc, errorStr)); kpd->setPassword(QLatin1String("")); } }