fix error type for linux

This commit is contained in:
OCram85 2019-04-04 16:04:59 +02:00
parent 8bc8135775
commit ec72c1bf13

View File

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