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

Throw exception if Import-Module fails #3104

Merged
merged 2 commits into from
Mar 24, 2023

Conversation

msftrubengu
Copy link
Contributor

@msftrubengu msftrubengu commented Mar 24, 2023

Try to import the module of the DSC resource before calling Invoke-DscResource. This let us fail earlier and get more information about the error.

Microsoft Reviewers: Open in CodeFlow
Microsoft Reviewers: Open in CodeFlow

@msftrubengu msftrubengu requested a review from a team as a code owner March 24, 2023 01:46
@github-actions

This comment has been minimized.

@msftrubengu msftrubengu merged commit c5f7df4 into microsoft:master Mar 24, 2023
@msftrubengu msftrubengu deleted the importmoduleexcetion branch April 7, 2023 22:29
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