We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7698758 commit 835d9c9Copy full SHA for 835d9c9
scripts/release/shared-commands/get-build-id-for-commit.js
@@ -23,7 +23,14 @@ async function getBuildIdForCommit(sha) {
23
);
24
25
if (!statusesResponse.ok) {
26
- throw Error('Could not find commit for: ' + sha);
+ if (statusesResponse.status === 404) {
27
+ throw Error('Could not find commit for: ' + sha);
28
+ }
29
+ const {message, documentation_url} = await statusesResponse.json();
30
+ const msg = documentation_url
31
+ ? `${message}\n\t${documentation_url}`
32
+ : message;
33
+ throw Error(msg);
34
}
35
36
const {statuses, state} = await statusesResponse.json();
0 commit comments