Forum Discussion
ray hogan
Feb 02, 2017Copper Contributor
Azure Function Apps - PowerShell's ErrorActionPreference
By default the environment's $ErrorActionPreference is set to 'Continue'. When a cmdlet throws an error the script will continue. I want it to 'Stop' and get caught in the catch of my try-catch b...
- Feb 03, 2017
I was able to get it to behave by using:
$global:erroractionpreference = 1
Instead of
$ErrorActionPreference = 'Stop'
:robotlol:
ray hogan
Feb 03, 2017Copper Contributor
I was able to get it to behave by using:
$global:erroractionpreference = 1
Instead of
$ErrorActionPreference = 'Stop'
:robotlol: