[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kwallet] src/runtime/kwalletd: Log wallet open failure errors
From:       Arjun AK <null () kde ! org>
Date:       2018-09-29 7:13:47
Message-ID: E1g69Rj-0001ZJ-Q1 () code ! kde ! org
[Download RAW message or body]

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/kwalletd.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, const QString& \
wallet,  password = kpd->password();
                             int rc = b->open(password.toUtf8());
                             if (!b->isOpen()) {
+                                const auto errorStr = \
KWallet::Backend::openRCToString(rc); +                                \
qCWarning(KWALLETD_LOG) << "Failed to open wallet" << wallet << errorStr;  \
kpd->setPrompt(i18n(  "<qt>Error opening the wallet "
                                     "'<b>%1</b>'. Please try again.<br "
                                     "/>(Error code %2: %3)</qt>",
-                                    wallet.toHtmlEscaped(), rc,
-                                    KWallet::Backend::openRCToString(rc)));
+                                    wallet.toHtmlEscaped(), rc, errorStr));
                                 kpd->setPassword(QLatin1String(""));
                             }
                         }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic