Merge pull request #174 from dgusakov/releases/v3
fix: Add global unhandledRejection handlerreleases/v3
commit
720fdedf8d
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue