mirror of
https://github.com/microsoft/PowerToys
synced 2024-11-22 00:03:48 +00:00
Retry adding some errors
This commit is contained in:
parent
798fbd646c
commit
97e1f06096
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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 $?)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user