provide additional error log message

This commit is contained in:
Aleksandr Chebotov
2020-10-19 17:39:28 +03:00
parent dd4f43be9d
commit b8548a8943

View File

@@ -49,6 +49,13 @@ Function Install-VisualStudio
}
else
{
$setupErrorLogPath = "$env:TEMP\dd_setup_*_errors.log"
if (Test-Path -Path $setupErrorLogPath)
{
$logErrors = Get-Content -Path $setupErrorLogPath -Raw
Write-Host "$logErrors"
}
Write-Host "Non zero exit code returned by the installation process : $exitCode"
exit $exitCode
}