build: improve logging on http errors during release process (again, but more) (#43758)

This commit is contained in:
Samuel Attard
2024-09-17 15:01:02 -07:00
committed by GitHub
parent cf4ab2186c
commit f987f8ad83

View File

@@ -401,7 +401,7 @@ async function verifyDraftGitHubReleaseAssets (release) {
throwHttpErrors: false
});
if (response.statusCode !== 200) {
if (response.statusCode !== 302 && response.statusCode !== 301) {
console.error('Failed to HEAD github asset: ' + url);
throw new Error('Unexpected status HEAD\'ing github asset: ' + response.statusCode);
}