Missing credentials error check lost with b71e30f642821afcc77ace8fdbb5feaf40c1ae5b reimplemented

This commit is contained in:
Simon Rozman 2016-08-13 08:29:01 +02:00
parent 534f6f6d7d
commit 6408dbe237

View File

@ -432,7 +432,8 @@ protected:
try {
m_cred.retrieve(m_target.c_str());
} catch (winstd::win_runtime_error &err) {
wxLogError(winstd::tstring_printf(_("Error reading credentials from Credential Manager: %hs (error %u)"), err.what(), err.number()).c_str());
if (err.number() != ERROR_NOT_FOUND)
wxLogError(winstd::tstring_printf(_("Error reading credentials from Credential Manager: %hs (error %u)"), err.what(), err.number()).c_str());
} catch (...) {
wxLogError(_("Reading credentials failed."));
}