Skip to content

Commit

Permalink
fix unhandled promise rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
benatshippabo committed Aug 18, 2021
1 parent 0cd1a63 commit cac7483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ const main = async () => {
console.log("All set!")
}

main()
main().catch((e) => {
core.setFailed(e)
})

function execWithOutput(command, args) {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit cac7483

Please sign in to comment.