Merge pull request #174 from dgusakov/releases/v3

fix: Add global unhandledRejection handler
releases/v3
Tycho Bokdam 2022-08-31 09:26:32 +02:00 committed by GitHub
commit 720fdedf8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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() run()