From e31743991084d0baeb2a648a5215c1553ca7c69e Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 7 Dec 2016 11:54:42 +0100 Subject: [PATCH] Some extra diagnostic output added when configuration XML contains unknown/unsupported method # Conflicts: # lib/TTLS/src/Config.cpp --- lib/TTLS/src/Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/TTLS/src/Config.cpp b/lib/TTLS/src/Config.cpp index b56be53..07da9b8 100644 --- a/lib/TTLS/src/Config.cpp +++ b/lib/TTLS/src/Config.cpp @@ -271,7 +271,7 @@ eap::config_method* eap::config_method_ttls::make_config_method(_In_ winstd::eap #ifdef EAP_INNER_EAPHOST default : return new config_method_eaphost (m_module, m_level + 1); // EapHost peer method handles all other method types #endif - default : throw invalid_argument(__FUNCTION__ " Unsupported inner authentication method."); + default : throw invalid_argument(string_printf(__FUNCTION__ " Unsupported inner authentication method (%d).", eap_type)); } } @@ -284,7 +284,7 @@ eap::config_method* eap::config_method_ttls::make_config_method(_In_ const wchar #ifdef EAP_INNER_EAPHOST else if (_wcsicmp(eap_type, L"EapHost" ) == 0) return new config_method_eaphost (m_module, m_level + 1); #endif - else throw invalid_argument(__FUNCTION__ " Unsupported inner authentication method."); + else throw invalid_argument(string_printf(__FUNCTION__ " Unsupported inner authentication method (%ls).", eap_type)); }