PowerShell has two types of errors: terminating and non-terminating. Non-terminating errors are handled consistently with common parameters and scoped $ErrorActionPreference. Terminating errors do not support this interface and instead rely on the programmer to determine that the error is non-terminating (usually after a period of confusion), and handle with separate but equivalent logic. Terminating errors are therefore only an inconvenience to advanced users and a source of significant confusion for new users.
All cmdlets should respect the ErrorActionPreference
PowerShell has two types of errors: terminating and non-terminating. Non-terminating errors are handled consistently with common parameters and scoped
$ErrorActionPreference. Terminating errors do not support this interface and instead rely on the programmer to determine that the error is non-terminating (usually after a period of confusion), and handle with separate but equivalent logic. Terminating errors are therefore only an inconvenience to advanced users and a source of significant confusion for new users.All cmdlets should respect the ErrorActionPreference