Skip to content

Commit

Permalink
Fix error status logging in setupClaCheck.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ibakshay committed Sep 20, 2024
1 parent b566f5f commit 56fb96e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ function getCLAFileContentandSHA(committers, committerMap) {
return createClaFileAndPRComment(committers, committerMap);
}
else {
core.info(`error status: ${error.status}`);
core.info(`error status: ${error.status} with type ${typeof (error.status)}`);
throw new Error(`Could not retrieve repository contents. Status: ${error.status || 'unknown'}`);
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/setupClaCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ async function getCLAFileContentandSHA(
if (error.status === 404) {
return createClaFileAndPRComment(committers, committerMap)
} else {
core.info(`error status: ${error.status}`)

core.info(`error status: ${error.status} with type ${typeof(error.status)}`)
throw new Error(
`Could not retrieve repository contents. Status: ${
error.status || 'unknown'
Expand Down

0 comments on commit 56fb96e

Please sign in to comment.