diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs index 46d49d8aab..1ec9eca56b 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs @@ -204,10 +204,10 @@ public virtual void run(ChocolateyConfiguration configuration) // note: you must leave the .ToList() here or else the method won't be evaluated! var packageResults = _packageService.list_run(configuration).ToList(); - // if there are no results, exit with a 1. + // if there are no results, exit with a 2. if (configuration.Features.UseEnhancedExitCodes && packageResults.Count == 0 && Environment.ExitCode == 0) { - Environment.ExitCode = 1; + Environment.ExitCode = 2; } }