microsoft / omi

Open Management Infrastructure
Other
371 stars 116 forks source link

MI_RESULT_TYPE_MOF_PARSER errors are not handled by OMI_ErrorFromErrorCode #76

Closed dantraMSFT closed 6 years ago

dantraMSFT commented 8 years ago

When errors are encountered at parse time deserializing class or instance MOFs, the errors reported by the parser are lost. This is due to MI_RESULT_TYPE_MOF_PARSER not being handled by OMI_ErrorFromErrorCode.

this is seen with DSC/Linux when errors are encountered parsing a configuration or meta MOF that contains errors. Instead of receiving a specific error, a generalized file load error is reported.

See Dsc/Linux issue https://github.com/Microsoft/PowerShell-DSC-for-Linux/issues/83 for an example.

sarojcare commented 6 years ago

Case need to be closed.