add linux error message

This commit is contained in:
OCram85 2019-04-03 14:28:25 +02:00
parent 84a89eb640
commit dd17ac4fed

View File

@ -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(