disable debug output

This commit is contained in:
OCram85 2019-04-04 16:54:36 +02:00
parent 4386f0dfd6
commit 7a56f2ff61
1 changed files with 7 additions and 7 deletions

View File

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