Skip to content

Commit

Permalink
Show stacktrace on error (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Aug 14, 2023
1 parent 4e9be3f commit ffe382d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ const main = async (): Promise<void> => {
})
}

main().catch((e) => core.setFailed(e instanceof Error ? e : String(e)))
main().catch((e: Error) => {
core.setFailed(e)
console.error(e)
})

0 comments on commit ffe382d

Please sign in to comment.