Skip to content

Commit 0d071b5

Browse files
Add better logging to GetExistingPackageVersions (#21782)
1 parent f1c042c commit 0d071b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eng/scripts/Language-Settings.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,10 @@ function GetExistingPackageVersions ($PackageName, $GroupId=$null)
475475
}
476476
catch
477477
{
478-
LogError "Failed to retrieve package versions. `n$_"
478+
if ($_.Exception.Response.StatusCode -ne 404)
479+
{
480+
LogError "Failed to retrieve package versions for ${PackageName}. $($_.Exception.Message)"
481+
}
479482
return $null
480483
}
481484
}

0 commit comments

Comments
 (0)