From 95eae5ad36fe44fb9923fceb41ded6e5663c5bf3 Mon Sep 17 00:00:00 2001 From: Mauville <40512475+Mauville@users.noreply.github.com> Date: Sun, 16 Jun 2019 14:57:22 -0500 Subject: [PATCH] (maint) Improve log message The log message when trying to downgrade a program shows a variety of switches, --force, --allow-downgrade One of these is formatted as prose, side by side Changed to reflect proper switch syntax. --- src/chocolatey/infrastructure.app/services/NugetService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs index 95a20a6129..35ecc269ac 100644 --- a/src/chocolatey/infrastructure.app/services/NugetService.cs +++ b/src/chocolatey/infrastructure.app/services/NugetService.cs @@ -464,7 +464,7 @@ public virtual ConcurrentDictionary install_run(Chocolate if (installedPackage != null && version != null && version < installedPackage.Version && !config.AllowMultipleVersions && !config.AllowDowngrade) { - string logMessage = "A newer version of {0} (v{1}) is already installed.{2} Use --allow-downgrade or --force to attempt to install older versions, or use side by side to allow multiple versions.".format_with(installedPackage.Id, installedPackage.Version, Environment.NewLine); + string logMessage = "A newer version of {0} (v{1}) is already installed.{2} Use --allow-downgrade or --force to attempt to install older versions, or use --side-by-side to allow multiple versions.".format_with(installedPackage.Id, installedPackage.Version, Environment.NewLine); var nullResult = packageInstalls.GetOrAdd(packageName, new PackageResult(installedPackage, _fileSystem.combine_paths(ApplicationParameters.PackagesLocation, installedPackage.Id))); nullResult.Messages.Add(new ResultMessage(ResultType.Error, logMessage)); this.Log().Error(ChocolateyLoggers.Important, logMessage); @@ -1637,4 +1637,4 @@ private void set_package_names_if_all_is_specified(ChocolateyConfiguration confi } } } -} \ No newline at end of file +}