You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error reporting changes
The code is less lazy about reporting errors now. It builds ErrorRecord objects with module-specific FullyQualifiedErrorId values, and the top-level (exported) functions use $PSCmdlet.ThrowTerminatingError() to return those values to the caller. This results in errors that look more like what you get from a cmdlet, and should be more useful to users of the module.
Since this could technically be a breaking change for scripts that are looking for the old errors, I'll be bumping the version number up to v2.0.
I don't have a lot of tests around the error conditions at the moment; should add some later to make sure that predictable errors produce the output that they should.
Refactoring and improved test coverage
Forgot to finish de-duping the DSC resource code earlier, that's done now.
Ran some coverage analysis and improved coverage a bit with some small tweaks. Up to around 75% now.
Still more bug fixes
All data types will now work properly, even if the -Data parameter is passed a single-element array when that element is of the proper type (which is exactly how the DSC resource calls these commands, incidentally.)