[DCR]: Better error reporting in API when certain credential provider is not installed #11435
Labels
Area:Authentication
Area:ErrorHandling
warnings and errors/log messages & related error codes.
Functionality:Restore
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Product:dotnet.exe
Type:DCR
Design Change Request
NuGet Product(s) Affected
dotnet.exe
Current Behavior
When certain credential provider is not installed, the API returns the following error on the request,
The exception type is not different from other error, and it misses any details which would be useful to show to user.
Desired Behavior
Consider returning different exception type for this error, so it can be caught and handled differently.
Consider adding information that it happens due to credential provider is missing, and provide link to install it for popular providers (like Azure DevOps).
Then API consumers (
dotnet new
,dotnet restore
) will be able to show this information to user. Current generic message is not enough to figure out that the underlying reason is missing provider and gives no guidance on how to resolve it.Additional Context
It's a common case in dotnet new / dotnet SDK in general. The users need better guidance on this workflow.
dotnet/templating#4162
dotnet/templating#2212
dotnet/templating#1747 (comment)
dotnet/sdk#11640
The text was updated successfully, but these errors were encountered: