Skip to content

Automatically log ErrorRecords instead of just Exceptions #145

@SteveL-MSFT

Description

@SteveL-MSFT

It seems that the log should be like the PowerShell transcript log to make debugging easier. Currently, if there is a non-terminating error or terminating error it is not automatically logged. For example, was using Invoke-RestMethod in my function to call a REST API but it failed. I had to wrap that in a try..catch and Write-Host the exception to understand what was failing. But this means that everyone would need to wrap their function in a try..catch.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions