From ae67f7cfc4b98ccc1d00867d84c2ed7aefa34fae Mon Sep 17 00:00:00 2001 From: Ivan Golubev Date: Fri, 11 Feb 2022 11:23:48 +0300 Subject: [PATCH] Update error message on PR changes #3738 (#3741) * Change error message --- src/Agent.Sdk/Util/VssUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Agent.Sdk/Util/VssUtil.cs b/src/Agent.Sdk/Util/VssUtil.cs index 7d85553bee..c33a1d2295 100644 --- a/src/Agent.Sdk/Util/VssUtil.cs +++ b/src/Agent.Sdk/Util/VssUtil.cs @@ -137,9 +137,9 @@ private static bool CheckSupportOfCustomServerCertificateValidation(ITraceWriter { client.GetAsync(_testUri).GetAwaiter().GetResult(); } - catch (Exception) + catch (Exception e) { - trace.Verbose("The current system doesn't support custom server certificate validation."); + trace.Verbose($"SSL diagnostic data collection is disabled, due to issue:\n{e.Message}"); return false; } return true;