From 4f66ad81e7eade905f0f842878548c84652b3bb9 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Thu, 22 Jan 2015 09:46:42 -0600 Subject: [PATCH] (GH-568) capture and return errors --- src/helpers/functions/Write-ChocolateyFailure.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/functions/Write-ChocolateyFailure.ps1 b/src/helpers/functions/Write-ChocolateyFailure.ps1 index 02840a8..e5d43c6 100644 --- a/src/helpers/functions/Write-ChocolateyFailure.ps1 +++ b/src/helpers/functions/Write-ChocolateyFailure.ps1 @@ -28,4 +28,5 @@ param( -----------------------" $errorMessage | Out-File -FilePath $logFile -Force -Append Write-Error $errorMessage + $error | %{ $_.Exception | fl * | Out-String } }