debug build error

This commit is contained in:
OCram85 2019-04-04 16:21:48 +02:00
parent 6789441758
commit 4ea71a2bba
1 changed files with 8 additions and 8 deletions

View File

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