diff --git a/src/runtime/kwalletd/kwalletd.cpp b/src/runtime/kwalletd/kwalletd.cpp --- a/src/runtime/kwalletd/kwalletd.cpp +++ b/src/runtime/kwalletd/kwalletd.cpp @@ -681,12 +681,13 @@ 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( "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("")); } }