Skip to content

Conversation

@danespinosa
Copy link
Contributor

validate that providers are > 0 otherwise START Failed 0x80131384 get…s thrown and it's not clear what the issue is.

The current behavior when an empty list of providers is provided is to throw START Failed 0x80131384 (BadEncoding) and that doesn't make it very clear about what the issue is. This PR proposes validating the number of providers so developers know that they should be providing 1 provider at least.

Before:
image

After:
image

…s thrown and it's not clear what the issue is.
@danespinosa danespinosa requested a review from a team as a code owner November 22, 2023 00:51
Copy link
Contributor

@davmason davmason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danespinosa
Copy link
Contributor Author

Thanks @davmason I didn't see any unit tests validating the ctor arguments so I didn't add any, but happy to follow any guidelines you have.

@davmason davmason merged commit dbaff1d into dotnet:main Nov 22, 2023
@davmason
Copy link
Contributor

I don't think we need any tests here, thanks for the fix!

@danespinosa
Copy link
Contributor Author

I don't think we need any tests here, thanks for the fix!

Thank you and thanks for all the work you and the team do!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants