Skip to content

Commit

Permalink
Add better logging to GetExistingPackageVersions (#25351)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Nov 17, 2021
1 parent 4e36ab4 commit bc940a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ function GetExistingPackageVersions ($PackageName, $GroupId=$null)
return $existingVersion.versions
}
catch {
LogError "Failed to retrieve package versions. `n$_"
if ($_.Exception.Response.StatusCode -ne 404)
{
LogError "Failed to retrieve package versions for ${PackageName}. $($_.Exception.Message)"
}
return $null
}
}
Expand Down

0 comments on commit bc940a5

Please sign in to comment.