Skip to content

License Validation outputs some errors and warnings when limit-output enabled. #2851

Closed
@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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions