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 {