-
-
Notifications
You must be signed in to change notification settings - Fork 5
Enable FSCPSException
Enable exceptions to be thrown
Enable-FSCPSException [-ProgressAction <ActionPreference>] [<CommonParameters>]
Change the default exception behavior of the module to support throwing exceptions
Useful when the module is used in an automated fashion, like inside Azure DevOps pipelines and large PowerShell scripts
Enable-FSCPSException
This will for the rest of the current PowerShell session make sure that exceptions will be thrown.
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: Exception, Exceptions, Warning, Warnings This is refactored function from d365fo.tools
Original Author: Mötz Jensen (@Splaxi) Author: Oleksandr Nikolaiev (@onikolaiev)