From 4ea71a2bba0ddc82cbcb4fa8113bc3b15ae533a0 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Thu, 4 Apr 2019 16:21:48 +0200 Subject: [PATCH] debug build error --- src/Certificate/Import-CSCertificate.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Certificate/Import-CSCertificate.ps1 b/src/Certificate/Import-CSCertificate.ps1 index ce3c18a..c309e17 100644 --- a/src/Certificate/Import-CSCertificate.ps1 +++ b/src/Certificate/Import-CSCertificate.ps1 @@ -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 {