mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
provide additional error log message
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user