Skip to content

Misleading error message when AcceptLicense is not used #1729

@ThomasNieto

Description

@ThomasNieto

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

PS /home> Install-PSResource Microsoft.PowerShell.UnixTabCompletion

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its Trusted value by
 running the Set-PSResourceRepository cmdlet. Are you sure you want to install the PSResource from 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y
Install-PSResource: Package 'Microsoft.PowerShell.UnixTabCompletion' could not be installed: License.txt not found. License.txt must be provided when user license acceptance is required.

Expected behavior

Write error that license wasn't accepted

Actual behavior

Error says license.txt not found which is incorrect.

Error details

No response

Environment data

1.1-preview2

Visuals

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions