Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function createPrComment(markdown, updateCommentIfOneExists, commentIdenti
core.info(`PR comment was updated. ID: ${response.data.id}.`);
})
.catch(error => {
core.setFailed(`An error occurred trying to update the PR comment: ${error.message}`);
core.setFailed(`An error occurred trying to update the PR comment: ${error.message}. Status: {error.status}`);
});
} else {
core.info(`Creating a new PR comment...`);
Expand Down Expand Up @@ -168,7 +168,7 @@ async function createStatusCheck(reportName, checkName, markdown, conclusion) {
statusCheckId = response.data.id;
})
.catch(error => {
core.setFailed(`An error occurred trying to create the status check: ${error.message}`);
core.setFailed(`An error occurred trying to create the status check: ${error.message}. Status: {error.status}`);
});
return statusCheckId;
}
Expand Down