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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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