From dd17ac4feda85e5a56d4a2fa6005f99ef60939a0 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 3 Apr 2019 14:28:25 +0200 Subject: [PATCH] add linux error message --- src/Item/New-CredentialStoreItem.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Item/New-CredentialStoreItem.ps1 b/src/Item/New-CredentialStoreItem.ps1 index 37d0f3d..4119aab 100644 --- a/src/Item/New-CredentialStoreItem.ps1 +++ b/src/Item/New-CredentialStoreItem.ps1 @@ -122,6 +122,9 @@ function New-CredentialStoreItem { $_.Thumbprint -eq $CSContent.Thumbprint } | Select-Object -First 1 if ($null -eq $Cert) { + if ($isLinux) { + throw "There is no windows certificate store on linux systems!" + } $ErrorParams = @{ ErrorAction = 'Stop' Exception = [System.Exception]::new(