build: improve logging on http errors during release process (again, but more) (#43758)
This commit is contained in:
parent
cf4ab2186c
commit
f987f8ad83
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue