Skip to content

Get-AccessToken.ps1 doesn't return error output #6

@sandytsang

Description

@sandytsang

Hi.

Can you add the output of the errors in Get-AccessToken.ps1? Now there is only write-warning in the catch, but there is no -erroraction stop in the write-warning line, or throw $error, so when I use the try and catch in my script for Get-AccessToken, it didn't catch any errors in the script. See screenshot.

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions