fix error type for linux

This commit is contained in:
OCram85 2019-04-04 16:04:59 +02:00
parent 8bc8135775
commit ec72c1bf13
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ function Import-CSCertificate {
$_.Exception.Message | Write-Error
$ErrorParams = @{
ErrorAction = 'Stop'
Exception = [System.Security.Cryptography.Exception]::new(
Exception = [System.Exception]::new(
'Could not read or add the pfx certificate!'
)
}