Update CliService.cs

pull/15783/head
Ebicoglu 3 years ago
parent 8d2ba514a6
commit 17755a0724

@ -177,12 +177,12 @@ public class CliService : ITransientDependency
return; return;
} }
try
{
var assembly = typeof(CliService).Assembly; var assembly = typeof(CliService).Assembly;
var toolPath = GetToolPath(assembly); var toolPath = GetToolPath(assembly);
var updateChannel = GetUpdateChannel(currentCliVersion); var updateChannel = GetUpdateChannel(currentCliVersion);
try
{
var latestVersion = await GetLatestVersion(updateChannel); var latestVersion = await GetLatestVersion(updateChannel);
if (latestVersion != null && latestVersion > currentCliVersion) if (latestVersion != null && latestVersion > currentCliVersion)
@ -192,8 +192,7 @@ public class CliService : ITransientDependency
} }
catch (Exception e) catch (Exception e)
{ {
Logger.LogWarning("Unable to retrieve the latest version"); Logger.LogWarning("Unable to retrieve the latest version: " + e.Message);
Logger.LogWarning(e.Message);
} }
} }

Loading…
Cancel
Save