Browse Source

Update CliService.cs

pull/15783/head
Ebicoglu 4 years ago
parent
commit
17755a0724
  1. 11
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs

11
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs

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

Loading…
Cancel
Save