Skip to content

Commit b485cb8

Browse files
authored
fix release status script reading response text twice (#6117)
1 parent 9b31467 commit b485cb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/release/status.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ async function checkStatuses (contexts) {
2222
})
2323

2424
if (response.status !== 200) {
25+
const responseText = await response.text?.()
26+
2527
console.log(response)
26-
console.log(response.text())
28+
console.log(responseText)
2729

2830
throw new Error(
29-
util.format('Could not get status from GitHub.\n\n%o\n\n%s', response, response.text?.())
31+
util.format('Could not get status from GitHub.\n\n%o\n\n%s', response, responseText)
3032
)
3133
}
3234

0 commit comments

Comments
 (0)