Skip to content

Publish-PSResource should say which repository it tried to publish to #345

@SteveL-MSFT

Description

@SteveL-MSFT

Had trouble publishing module to psgallery. Kept getting error that my apikey wasn't valid. Forgot that I had multiple repositories registered and it was trying one of those first. Once I specified psgallery, it worked. Would have been easier to spot the problem if the error message contained the name of the repository that returned the error:

Current:

Publish-PSResource: Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.).

Proposed:

Publish-PSResource: Repository 'Nuget': Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions