"The parameter is incorrect" error is confusing when accidentally specifying Password instead of ClearTextPassword #3245
Labels
Area:ErrorHandling
warnings and errors/log messages & related error codes.
Category:Quality Week
Issues that should be considered for quality week
Priority:2
Issues for the current backlog.
Product:NuGet.exe
NuGet.exe
Type:Bug
Milestone
We had a user enter a password under the "Password" key rather than "ClearTextPassword" in their nuget.config. As far as I've found, all versions of nuget will emit the text "The parameter is incorrect." without any additional useful information.
e.g.
"WARNING: Unable to find version '1.0.0' of package 'testpackage'.
https://zlrenner.pkgs.visualstudio.com/_packaging/feed1/nuget/v3/index.json: Unable to load the service index for source https://zlrenner.pkgs.visualstudio.com/_packaging/feed1/nuget/v3/index.json.
The parameter is incorrect."
NuGet should emit a nicer message indicating that there is an issue with the (supposed to be) encrypted password.
The text was updated successfully, but these errors were encountered: