From f987f8ad839e9f0732b55c8a8107ef354c045520 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Tue, 17 Sep 2024 15:01:02 -0700 Subject: [PATCH] build: improve logging on http errors during release process (again, but more) (#43758) --- script/release/release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release/release.js b/script/release/release.js index f4ca11af7b73..5ebd8614bfea 100755 --- a/script/release/release.js +++ b/script/release/release.js @@ -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); }