Skip to content

Commit c412554

Browse files
committed
Fix error handling in Remove-SqlDscLogin to log the entire LoginObject instead of just the name
1 parent e86ce1a commit c412554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Public/Remove-SqlDscLogin.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function Remove-SqlDscLogin
123123
[System.InvalidOperationException]::new($errorMessage, $_.Exception),
124124
'RSDL0001', # cspell: disable-line
125125
[System.Management.Automation.ErrorCategory]::InvalidOperation,
126-
$LoginObject.Name
126+
$LoginObject
127127
)
128128
)
129129
}

0 commit comments

Comments
 (0)