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

Set-ModuleFinctions Error Handling Enhancment #97

Open
Dejulia489 opened this issue Jan 18, 2019 · 1 comment
Open

Set-ModuleFinctions Error Handling Enhancment #97

Dejulia489 opened this issue Jan 18, 2019 · 1 comment

Comments

@Dejulia489
Copy link

Set-ModuleFunctions does not return the error from the $Powershell.Invoke on line 59.

@jonathanmedd
Copy link

Is there a possibility to get the linked PR merged?

I had an issue with Set-ModuleFunction in a build and the error thrown as the code currently is suggests an issue with the file path to the module, when in fact it's most likely something completely different, example below:

Exception: Could not find module 'D:\a\1\s\src\Brickset.psd1'

When using the code suggested in the PR, the actual issue is returned during the build:

Exception: The version of Windows PowerShell on this computer is '5.1.17763.1490'. The module 'D:\a\1\s\src\Brickset.psd1' requires a minimum Windows PowerShell version of '7.1' to run. Verify that you have the minimum required version of Windows PowerShell installed, and then try again

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

No branches or pull requests

2 participants