We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbc4055 commit 7abc53aCopy full SHA for 7abc53a
source/Public/Remove-SqlDscRole.ps1
@@ -96,9 +96,9 @@ function Remove-SqlDscRole
96
97
$PSCmdlet.ThrowTerminatingError(
98
[System.Management.Automation.ErrorRecord]::new(
99
- [System.InvalidOperationException]::new($errorMessage),
+ [System.Management.Automation.ItemNotFoundException]::new($errorMessage),
100
'RSDR0001', # cspell: disable-line
101
- [System.Management.Automation.ErrorCategory]::InvalidOperation,
+ [System.Management.Automation.ErrorCategory]::ObjectNotFound,
102
$Name
103
)
104
0 commit comments