Skip to content

Don't let unset error codes be thrown - #5255

Merged
JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:ff-handleget
Feb 27, 2025
Merged

Don't let unset error codes be thrown#5255
JohnMcPMS merged 1 commit into
microsoft:masterfrom
JohnMcPMS:ff-handleget

Conversation

@JohnMcPMS

@JohnMcPMS JohnMcPMS commented Feb 27, 2025

Copy link
Copy Markdown
Member

Change

Some of the http_exceptions coming through this function don't have error codes set. Throwing that success code causes WIL to fail fast.

Validation

Forced an exception without a code to be thrown (force the Store DNS to map to another web server so that the certificate did not match).

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS
JohnMcPMS requested a review from a team as a code owner February 27, 2025 00:32
@JohnMcPMS
JohnMcPMS merged commit ec46ec3 into microsoft:master Feb 27, 2025
@JohnMcPMS
JohnMcPMS deleted the ff-handleget branch February 27, 2025 16:56
JohnMcPMS added a commit to JohnMcPMS/winget-cli that referenced this pull request Feb 27, 2025
## Change
Some of the `http_exception`s coming through this function don't have
error codes set. Throwing that success code causes WIL to fail fast.
JohnMcPMS added a commit that referenced this pull request Feb 27, 2025
## Change
Some of the `http_exception`s coming through this function don't have
error codes set. Throwing that success code causes WIL to fail fast.

CP from #5255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants