Skip to content

Add informative error handling #38

Description

@jeffpatton1971

This is a snip from the ado project

$PSCmdlet.ThrowTerminatingError(
[System.Management.Automation.ErrorRecord]::new(
([System.Management.Automation.ItemNotFoundException]"Not connected to Azure DevOps, please run Connect-AzDevOpsOrganization"),'Projects.Functions',
[System.Management.Automation.ErrorCategory]::OpenError,$MyObject
)
)

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions