Browse Source

Update CliService.cs

pull/15783/head
Engincan VESKE 3 years ago
parent
commit
2f8fec529f
  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

@ -314,6 +314,12 @@ public class CliService : ITransientDependency
var toolPathArg = IsGlobalTool(toolPath) ? "-g" : $"--tool-path {toolPath}";
Logger.LogWarning($"ABP CLI has a newer {updateChannel.ToString().ToLowerInvariant()} version {latestVersion}, please update to get the latest features and fixes.");
if (!string.IsNullOrWhiteSpace(message))
{
Logger.LogWarning(message);
}
Logger.LogWarning(string.Empty);
Logger.LogWarning("Update Command: ");
@ -337,11 +343,6 @@ public class CliService : ITransientDependency
throw new ArgumentOutOfRangeException(nameof(updateChannel), updateChannel, null);
}
if (!string.IsNullOrWhiteSpace(message))
{
Logger.LogWarning(message);
}
Logger.LogWarning(string.Empty);
}

Loading…
Cancel
Save