diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index 36a6974935af5..ffe9ccdc91df2 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -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 } }