add linux error message
This commit is contained in:
parent
84a89eb640
commit
dd17ac4fed
@ -122,6 +122,9 @@ function New-CredentialStoreItem {
|
|||||||
$_.Thumbprint -eq $CSContent.Thumbprint
|
$_.Thumbprint -eq $CSContent.Thumbprint
|
||||||
} | Select-Object -First 1
|
} | Select-Object -First 1
|
||||||
if ($null -eq $Cert) {
|
if ($null -eq $Cert) {
|
||||||
|
if ($isLinux) {
|
||||||
|
throw "There is no windows certificate store on linux systems!"
|
||||||
|
}
|
||||||
$ErrorParams = @{
|
$ErrorParams = @{
|
||||||
ErrorAction = 'Stop'
|
ErrorAction = 'Stop'
|
||||||
Exception = [System.Exception]::new(
|
Exception = [System.Exception]::new(
|
||||||
|
Loading…
Reference in New Issue
Block a user