Missing credentials error check lost with b71e30f642821afcc77ace8fdbb5feaf40c1ae5b reimplemented
This commit is contained in:
parent
534f6f6d7d
commit
6408dbe237
@ -432,6 +432,7 @@ protected:
|
|||||||
try {
|
try {
|
||||||
m_cred.retrieve(m_target.c_str());
|
m_cred.retrieve(m_target.c_str());
|
||||||
} catch (winstd::win_runtime_error &err) {
|
} catch (winstd::win_runtime_error &err) {
|
||||||
|
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());
|
wxLogError(winstd::tstring_printf(_("Error reading credentials from Credential Manager: %hs (error %u)"), err.what(), err.number()).c_str());
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
wxLogError(_("Reading credentials failed."));
|
wxLogError(_("Reading credentials failed."));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user