Publish preview version #42
@ -97,14 +97,14 @@ function Import-CSCertificate {
|
||||
}
|
||||
}
|
||||
catch {
|
||||
$_.Exception.Message | Write-Error
|
||||
$ErrorParams = @{
|
||||
ErrorAction = 'Stop'
|
||||
Exception = [System.Exception]::new(
|
||||
'Could not read or add the pfx certificate!'
|
||||
)
|
||||
}
|
||||
Write-Error @ErrorParams
|
||||
$_.Exception.Message | Write-Error -ErrorAction Stop
|
||||
#$ErrorParams = @{
|
||||
# ErrorAction = 'Stop'
|
||||
# Exception = [System.Exception]::new(
|
||||
# 'Could not read or add the pfx certificate!'
|
||||
# )
|
||||
#}
|
||||
#Write-Error @ErrorParams
|
||||
}
|
||||
}
|
||||
end {
|
||||
|
Loading…
Reference in New Issue
Block a user