Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that another fix is needed: "statement-terminating" -> "script-terminating"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the preceding text also be updated to reflect this fix? Right now, the 2nd bullet point and the fixed escalation example are not aligned. Copilot also noted this in the merge, but the inconsistency seems to still be present.


```powershell
& {
[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'; Get-Item 'NoSuchPath'
$ErrorActionPreference = 'Stop'
Get-Item 'NoSuchPath'
} 2>$null
'after'
```
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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'
```
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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'
```
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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'
```
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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'
```
Expand Down
Loading