Skip to content

Commit 76ac6a9

Browse files
authored
Bugfix/status (#48)
1 parent b0f17bd commit 76ac6a9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function run(): Promise<void> {
5151
core.setFailed('Coverage is lower then configured threshold 😭')
5252
}
5353
} catch (error) {
54-
const message = JSON.stringify(error)
54+
const message = JSON.stringify(error instanceof Error ? error.message : error)
5555
core.setFailed(message)
5656
if (checkId > 0) {
5757
octokit.rest.checks.update({

0 commit comments

Comments
 (0)