Skip to content

Commit

Permalink
Merge pull request #174 from dgusakov/releases/v3
Browse files Browse the repository at this point in the history
fix: Add global unhandledRejection handler
  • Loading branch information
TriPSs committed Aug 31, 2022
2 parents d360fad + 4e5fd06 commit 720fded
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Expand Up @@ -236,4 +236,10 @@ async function run() {
}
}

process.on('unhandledRejection', (reason, promise) => {
let error = `Unhandled Rejection occurred. ${reason.stack}`
console.error(error)
core.setFailed(error)
});

run()

0 comments on commit 720fded

Please sign in to comment.