Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate error info from Hyper-V manager to the callers and telemetry for configuration operation #3865

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

sshilov7
Copy link
Member

Summary of the pull request

Propagate more error info returned as a result of Hyper-V operations to higher levels and telemetry.

We were losing some error info returned by PowerShell for Hyper-V operations, making it harder to diagnose the failures. This PR adds more diagnostic info to telemetry.

References and relevant issues

#3662

Detailed description of the pull request / Additional comments

I haven't seen a useful HRESULT in exceptions returned by PowerShell, however error description can be useful and can have error codes embedded into the text.

Validation steps performed

Tested by forcing Hyper-V/PowerShell to return errors when trying to execute Configure Environment operation.

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

Copy link
Contributor

@bbonaby bbonaby left a comment

Choose a reason for hiding this comment

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

Nice!

@sshilov7 sshilov7 merged commit 6a236e7 into main Sep 16, 2024
4 checks passed
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.

3 participants