Retry adding some errors

This commit is contained in:
Jaime Bernardo 2024-10-14 11:03:40 +01:00
parent 798fbd646c
commit 97e1f06096
2 changed files with 10 additions and 2 deletions

View File

@ -117,8 +117,10 @@ else
{ {
Write-Error 'XAML Styling is incorrect, please run `.\.pipelines\applyXamlStyling.ps1 -Main` locally.' Write-Error 'XAML Styling is incorrect, please run `.\.pipelines\applyXamlStyling.ps1 -Main` locally.'
} }
if ($lastExitCode -lt 0)
Write-Output "Last exit code was $lastExitCode" {
Write-Error "Error running dotnet tool run, with the exit code $lastExitCode. Please verify logs and running environment."
}
# Return XAML Styler Status # Return XAML Styler Status
exit $lastExitCode exit $lastExitCode
} }

View File

@ -8,6 +8,12 @@ Write-Host "Verifying Nuget packages for $solution"
dotnet tool restore dotnet tool restore
dotnet consolidate -s $solution dotnet consolidate -s $solution
if ($lastExitCode -ne 0)
{
$result = $lastExitCode
Write-Error "Error running dotnet consolidate, with the exit code $lastExitCode. Please verify logs and running environment."
exit $result
}
if (-not $?) if (-not $?)
{ {