Skip to content

Commit

Permalink
ci(release): print CircleCI response when the request fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian Krol committed Apr 27, 2023
1 parent e29853b commit eb1f823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/check-circle-ci-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ function executeHttpRequest(requestPath, circleToken) {
},
res => {
if (res.statusCode < 200 || res.statusCode > 299) {
res.on('data', chunk => console.log(`CircleCI response body: ${chunk}`));
return reject(new Error(`Unexpected status code ${res.statusCode} for request to ${requestPath}.`));
}

Expand Down

0 comments on commit eb1f823

Please sign in to comment.