Skip to content

Chocolatey CLI outputs errors/warnings when validating a license file with --limit-output option enabled #2851

@corbob

Description

@corbob

What You Are Seeing?

When running a command with --limit-output, the License Validation will sometimes output errors and warnings.

What is Expected?

Chocolatey License Validation should not output unless absolutely necessary.

How Did You Get This To Happen? (Steps to Reproduce)

  1. Create a license directory in your Chocolatey install
  2. Add a file to the license directory (named something that is not chocolatey.license.xml
  3. Run choco list -lo --limit-output
  4. Observe the error and warning text about there not being a license, but about the license directory not being empty.

System Details

  • OS Build: Windows Server 2019
  • Windows PowerShell version: 5.1
  • Chocolatey version: 1.1.0

Output Log

N/A

Metadata

Metadata

Assignees

Labels

5 - ReleasedThe issue has been resolved, and released to the public for consumption.BugIssues where something has happened which was not expected or intended.HacktoberfestIssues opened during hacktoberfest.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions