diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Error_Handling.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Error_Handling.md index b7f5428356e6..79ddedbfa414 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Error_Handling.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Error_Handling.md @@ -1,7 +1,7 @@ --- description: Describes the types of errors in PowerShell and the mechanisms for handling them. Locale: en-US -ms.date: 03/26/2026 +ms.date: 06/02/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_error_handling?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Error_Handling @@ -259,13 +259,14 @@ The scope of the escalated error depends on context: 'after' ``` -- ADVANCED: statement-terminating ('after' DOES print) +- ADVANCED: statement-terminating ('after' does NOT print) ```powershell & { [CmdletBinding()] param() - $ErrorActionPreference = 'Stop'; Get-Item 'NoSuchPath' + $ErrorActionPreference = 'Stop' + Get-Item 'NoSuchPath' } 2>$null 'after' ``` diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Error_Handling.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Error_Handling.md index a6b16ff5567c..06de1b9034d5 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Error_Handling.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Error_Handling.md @@ -1,7 +1,7 @@ --- description: Describes the types of errors in PowerShell and the mechanisms for handling them. Locale: en-US -ms.date: 03/26/2026 +ms.date: 06/02/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_error_handling?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Error_Handling @@ -259,13 +259,14 @@ The scope of the escalated error depends on context: 'after' ``` -- ADVANCED: statement-terminating ('after' DOES print) +- ADVANCED: statement-terminating ('after' does NOT print) ```powershell & { [CmdletBinding()] param() - $ErrorActionPreference = 'Stop'; Get-Item 'NoSuchPath' + $ErrorActionPreference = 'Stop' + Get-Item 'NoSuchPath' } 2>$null 'after' ``` diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Error_Handling.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Error_Handling.md index d39ac3ab850d..f3667551046b 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Error_Handling.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Error_Handling.md @@ -1,7 +1,7 @@ --- description: Describes the types of errors in PowerShell and the mechanisms for handling them. Locale: en-US -ms.date: 03/26/2026 +ms.date: 06/02/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_error_handling?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Error_Handling @@ -259,13 +259,14 @@ The scope of the escalated error depends on context: 'after' ``` -- ADVANCED: statement-terminating ('after' DOES print) +- ADVANCED: statement-terminating ('after' does NOT print) ```powershell & { [CmdletBinding()] param() - $ErrorActionPreference = 'Stop'; Get-Item 'NoSuchPath' + $ErrorActionPreference = 'Stop' + Get-Item 'NoSuchPath' } 2>$null 'after' ``` diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_Error_Handling.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_Error_Handling.md index c605c0214129..1d9ecc32cf28 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/About/about_Error_Handling.md +++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_Error_Handling.md @@ -1,7 +1,7 @@ --- description: Describes the types of errors in PowerShell and the mechanisms for handling them. Locale: en-US -ms.date: 03/26/2026 +ms.date: 06/02/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_error_handling?view=powershell-7.6&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Error_Handling @@ -259,13 +259,14 @@ The scope of the escalated error depends on context: 'after' ``` -- ADVANCED: statement-terminating ('after' DOES print) +- ADVANCED: statement-terminating ('after' does NOT print) ```powershell & { [CmdletBinding()] param() - $ErrorActionPreference = 'Stop'; Get-Item 'NoSuchPath' + $ErrorActionPreference = 'Stop' + Get-Item 'NoSuchPath' } 2>$null 'after' ``` diff --git a/reference/7.7/Microsoft.PowerShell.Core/About/about_Error_Handling.md b/reference/7.7/Microsoft.PowerShell.Core/About/about_Error_Handling.md index 54471504a17e..727d29408574 100644 --- a/reference/7.7/Microsoft.PowerShell.Core/About/about_Error_Handling.md +++ b/reference/7.7/Microsoft.PowerShell.Core/About/about_Error_Handling.md @@ -1,7 +1,7 @@ --- description: Describes the types of errors in PowerShell and the mechanisms for handling them. Locale: en-US -ms.date: 03/26/2026 +ms.date: 06/02/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_error_handling?view=powershell-7.7&WT.mc_id=ps-gethelp schema: 2.0.0 title: about_Error_Handling @@ -259,13 +259,14 @@ The scope of the escalated error depends on context: 'after' ``` -- ADVANCED: statement-terminating ('after' DOES print) +- ADVANCED: statement-terminating ('after' does NOT print) ```powershell & { [CmdletBinding()] param() - $ErrorActionPreference = 'Stop'; Get-Item 'NoSuchPath' + $ErrorActionPreference = 'Stop' + Get-Item 'NoSuchPath' } 2>$null 'after' ```