PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

Misleading error message when AcceptLicense is not used

Open ThomasNieto opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] 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

ThomasNieto avatar Oct 20 '24 04:10 ThomasNieto