maikvandergaag / msft-extensions

Repository for extensions mainly used for Azure DevOps Extensions
https://msftplayground.com
MIT License
126 stars 81 forks source link

Error reporting in the Pipeline Trigger Extension #459

Open meiordac opened 1 year ago

meiordac commented 1 year ago

Describe the issue There is a bug in the error-handling logic of the TriggerPipeline extension. It's currently failing to parse the error response when validation errors occur. This results in unhelpful error messages.

Extension

To Reproduce Simulate an Invoke-RestMethod failure, it will fail with the Cannot bind argument to parameter 'Message' because it is null.

Expected behavior When there's an error you get useful error messages.

Log info `

[error]Cannot bind argument to parameter 'Message' because it is null.

`

maikvandergaag commented 1 year ago

Will check when I go do this