Skip to content

Commit 95ddc8d

Browse files
Copilotjohlju
andcommitted
Update CHANGELOG with concise error handling changes
Co-authored-by: johlju <[email protected]>
1 parent 78e81ec commit 95ddc8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5959
- `Set-SqlDscDatabaseProperty`
6060
- Updated comment-based help to reference correct enum values.
6161
- Added SQL Server version requirements to version-specific parameter help.
62-
- Updated CONTRIBUTING.md error handling documentation to clarify proper usage
63-
of `Write-Error` vs `$PSCmdlet.ThrowTerminatingError()` in public commands
62+
- Updated CONTRIBUTING.md error handling guidelines: recommend `Write-Error` for
63+
public commands; clarified that `-ErrorAction 'Stop'` alone is insufficient
64+
when calling commands using `$PSCmdlet.ThrowTerminatingError()` - callers must
65+
set `$ErrorActionPreference = 'Stop'` or use try-catch
6466
([issue #2193](https://github.com/dsccommunity/SqlServerDsc/issues/2193)).
6567

6668
### Fixed

0 commit comments

Comments
 (0)