BuildHelpers icon indicating copy to clipboard operation
BuildHelpers copied to clipboard

Set-ModuleFinctions Error Handling Enhancment

Open Dejulia489 opened this issue 6 years ago • 1 comments
trafficstars

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

Dejulia489 avatar Jan 18 '19 18:01 Dejulia489

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

jonathanmedd avatar Jan 14 '21 10:01 jonathanmedd