From 6408dbe2375357695d81330ed5cefbe7ac6fa2ff Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sat, 13 Aug 2016 08:29:01 +0200 Subject: [PATCH] Missing credentials error check lost with b71e30f642821afcc77ace8fdbb5feaf40c1ae5b reimplemented --- lib/EAPBase_UI/include/EAP_UI.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/EAPBase_UI/include/EAP_UI.h b/lib/EAPBase_UI/include/EAP_UI.h index f2c5405..8927d61 100644 --- a/lib/EAPBase_UI/include/EAP_UI.h +++ b/lib/EAPBase_UI/include/EAP_UI.h @@ -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.")); }