microsoft / DSCParser

Allows the conversion of DSC scripts into PSObject for analysis purposes
MIT License
29 stars 21 forks source link

Enhancement: improved error handling #26

Closed mpiederiet closed 2 years ago

mpiederiet commented 2 years ago

Improves the handling of issues while parsing the DSC config. The PSParser returns a collection of errors encountered while parsing the configuration. This PR handles the returned errors and throws errors or writes warnings where appropriate. Also added some improvements (input path checking, parameter sets to avoid conflicting parameters to be passed).

The last commit was the result of "Format Document" in VS Code to give the code a cleaner look. I can remove that if you think it generated too many changes.

Fixes #18