From 7a56f2ff619dc95bf2aa2764a3cd4c6274d8f661 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Thu, 4 Apr 2019 16:54:36 +0200 Subject: [PATCH] disable debug output --- src/Certificate/Import-CSCertificate.ps1 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Certificate/Import-CSCertificate.ps1 b/src/Certificate/Import-CSCertificate.ps1 index 219ef32..6738036 100644 --- a/src/Certificate/Import-CSCertificate.ps1 +++ b/src/Certificate/Import-CSCertificate.ps1 @@ -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 {