From 2f8fec529fca8d458ea13cc9bd614aceb4a07cba Mon Sep 17 00:00:00 2001 From: Engincan VESKE <43685404+EngincanV@users.noreply.github.com> Date: Thu, 23 Feb 2023 17:56:39 +0300 Subject: [PATCH] Update CliService.cs --- .../src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs index 618c8c2608..3ab75da1c0 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliService.cs +++ b/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); }